[Ekiga-devel-list] [PATCH] Fix warnings in opal
- From: Julien Puydt <jpuydt free fr>
- To: Ekiga development mailing list <ekiga-devel-list gnome org>
- Subject: [Ekiga-devel-list] [PATCH] Fix warnings in opal
- Date: Fri, 06 Jun 2008 15:35:36 +0200
When things are passed-by-values, "const" is useless...
Snark
diff -ur opal.orig/h323/h323con.h opal.patched/h323/h323con.h
--- opal.orig/h323/h323con.h 2008-06-06 15:26:49.926507140 +0200
+++ opal.patched/h323/h323con.h 2008-06-06 15:34:12.302396814 +0200
@@ -1859,7 +1859,7 @@
0 - Just this connection
n - n plus this connection
*/
- const int GetRemoteCallWaiting() const { return remoteCallWaiting; }
+ int GetRemoteCallWaiting() const { return remoteCallWaiting; }
/**Set the enforced duration limit for the call.
This starts a timer that will automatically shut down the call when it
diff -ur opal.orig/opal/manager.h opal.patched/opal/manager.h
--- opal.orig/opal/manager.h 2008-06-06 15:26:50.610341818 +0200
+++ opal.patched/opal/manager.h 2008-06-06 15:34:12.838524241 +0200
@@ -182,7 +182,7 @@
/**Determine if a call is active.
Return the number of active calls.
*/
- virtual const unsigned GetCallsNumber()
+ virtual unsigned GetCallsNumber()
{ return activeCalls.GetSize(); }
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]