mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-29 03:16:01 +01:00
WPrefs: Removed unused screen argument in functions 'Init*'
The screen argument was not used in 'InitDoubleTest', 'InitEditMenuItem' and 'InitEditMenu', so remove it to make the code simpler and avoid compiler warning. Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
committed by
Carlos R. Mafra
parent
f5f367841b
commit
def69435b1
@@ -33,7 +33,7 @@ static W_Class DoubleTestClass = 0;
|
||||
* Initializer for our widget. Must be called before creating any
|
||||
* instances of the widget.
|
||||
*/
|
||||
W_Class InitDoubleTest(WMScreen * scr)
|
||||
W_Class InitDoubleTest(void)
|
||||
{
|
||||
/* register our widget with WINGs and get our widget class ID */
|
||||
if (!DoubleTestClass) {
|
||||
@@ -51,7 +51,7 @@ DoubleTest *CreateDoubleTest(WMWidget * parent, const char *text)
|
||||
DoubleTest *dPtr;
|
||||
|
||||
if (!DoubleTestClass)
|
||||
InitDoubleTest(WMWidgetScreen(parent));
|
||||
InitDoubleTest();
|
||||
|
||||
/* allocate some storage for our new widget instance */
|
||||
dPtr = wmalloc(sizeof(DoubleTest));
|
||||
|
||||
Reference in New Issue
Block a user