Remove unneeded void parameter in generated code. Fix some gcc4 errors.

This commit is contained in:
ocoursiere
2012-10-20 22:50:24 +00:00
parent bfc2956458
commit 497a01f5e6
7 changed files with 13 additions and 13 deletions

View File

@@ -155,7 +155,7 @@ BSerialPort_SetDataBits(BSerialPort *SerialPort, data_bits numBits)
* Descr: * Descr:
*/ */
data_bits data_bits
BSerialPort_DataBits(BSerialPort *SerialPort, void) BSerialPort_DataBits(BSerialPort *SerialPort)
{ {
return SerialPort->DataBits(); return SerialPort->DataBits();
} }
@@ -177,7 +177,7 @@ BSerialPort_SetStopBits(BSerialPort *SerialPort, stop_bits numBits)
* Descr: * Descr:
*/ */
stop_bits stop_bits
BSerialPort_StopBits(BSerialPort *SerialPort, void) BSerialPort_StopBits(BSerialPort *SerialPort)
{ {
return SerialPort->StopBits(); return SerialPort->StopBits();
} }
@@ -199,7 +199,7 @@ BSerialPort_SetParityMode(BSerialPort *SerialPort, parity_mode which)
* Descr: * Descr:
*/ */
parity_mode parity_mode
BSerialPort_ParityMode(BSerialPort *SerialPort, void) BSerialPort_ParityMode(BSerialPort *SerialPort)
{ {
return SerialPort->ParityMode(); return SerialPort->ParityMode();
} }
@@ -210,7 +210,7 @@ BSerialPort_ParityMode(BSerialPort *SerialPort, void)
* Descr: * Descr:
*/ */
void void
BSerialPort_ClearInput(BSerialPort *SerialPort, void) BSerialPort_ClearInput(BSerialPort *SerialPort)
{ {
SerialPort->ClearInput(); SerialPort->ClearInput();
} }
@@ -221,7 +221,7 @@ BSerialPort_ClearInput(BSerialPort *SerialPort, void)
* Descr: * Descr:
*/ */
void void
BSerialPort_ClearOutput(BSerialPort *SerialPort, void) BSerialPort_ClearOutput(BSerialPort *SerialPort)
{ {
SerialPort->ClearOutput(); SerialPort->ClearOutput();
} }

View File

@@ -450,7 +450,7 @@ BScreen_SetDPMS(BScreen *Screen, uint32 dpms_state)
* Effects: * Effects:
***********************************************************************/ ***********************************************************************/
uint32 uint32
BScreen_DPMSState(BScreen *Screen, void) BScreen_DPMSState(BScreen *Screen)
{ {
return Screen->DPMSState(); return Screen->DPMSState();
} }
@@ -463,7 +463,7 @@ BScreen_DPMSState(BScreen *Screen, void)
* Effects: * Effects:
***********************************************************************/ ***********************************************************************/
uint32 uint32
BScreen_DPMSCapabilites(BScreen *Screen, void) BScreen_DPMSCapabilites(BScreen *Screen)
{ {
return Screen->DPMSCapabilites(); return Screen->DPMSCapabilites();
} }

View File

@@ -1569,7 +1569,7 @@ BTextView_HideTyping(BTextView *TextView, bool enabled)
* Effects: * Effects:
***********************************************************************/ ***********************************************************************/
bool bool
BTextView_IsTypingHidden(BTextView *TextView, void) BTextView_IsTypingHidden(BTextView *TextView)
{ {
return TextView->IsTypingHidden(); return TextView->IsTypingHidden();
} }

View File

@@ -118,7 +118,7 @@ BView* BWindow_ChildAt(BWindow* Window, int32 index)
return Window->ChildAt(index); return Window->ChildAt(index);
} }
int32 BWindow_CountChildren(BWindow* Window, void) int32 BWindow_CountChildren(BWindow* Window)
{ {
return Window->CountChildren(); return Window->CountChildren();
} }

View File

@@ -379,7 +379,7 @@ BFilePanel_SetHideWhenDone(BFilePanel *FilePanel, bool z)
* Effects: * Effects:
***********************************************************************/ ***********************************************************************/
bool bool
BFilePanel_HidesWhenDone(BFilePanel *FilePanel, void) BFilePanel_HidesWhenDone(BFilePanel *FilePanel)
{ {
return FilePanel->HidesWhenDone(); return FilePanel->HidesWhenDone();
} }

View File

@@ -95,7 +95,7 @@ BVolume_SetTo(BVolume *Volume, dev_t dev)
* Descr: * Descr:
*/ */
void void
BVolume_Unset(BVolume *Volume, void) BVolume_Unset(BVolume *Volume)
{ {
Volume->Unset(); Volume->Unset();
} }

View File

@@ -95,7 +95,7 @@ BVolumeRoster_StartWatching(BVolumeRoster *VolumeRoster, BMessenger msngr)
* Descr: * Descr:
*/ */
void void
BVolumeRoster_StopWatching(BVolumeRoster *VolumeRoster, void) BVolumeRoster_StopWatching(BVolumeRoster *VolumeRoster)
{ {
VolumeRoster->StopWatching(); VolumeRoster->StopWatching();
} }
@@ -106,7 +106,7 @@ BVolumeRoster_StopWatching(BVolumeRoster *VolumeRoster, void)
* Descr: * Descr:
*/ */
BMessenger BMessenger
BVolumeRoster_Messenger(BVolumeRoster *VolumeRoster, void) BVolumeRoster_Messenger(BVolumeRoster *VolumeRoster)
{ {
return VolumeRoster->Messenger(); return VolumeRoster->Messenger();
} }