[Ekiga-devel-list] [PATCH] Fix warnings in opal



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]