[ekiga] Const'ified some constructor variables.



commit 2c72a9e88e0d792e415f85e6ac0add1e4aa33d22
Author: Damien Sandras <dsandras seconix com>
Date:   Sun May 17 15:16:37 2009 +0200

    Const'ified some constructor variables.
    
    We keep a reference to a const object.
---
 lib/engine/components/opal/opal-call.cpp |    2 +-
 lib/engine/components/opal/opal-call.h   |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/engine/components/opal/opal-call.cpp b/lib/engine/components/opal/opal-call.cpp
index 9072d80..3d328b1 100644
--- a/lib/engine/components/opal/opal-call.cpp
+++ b/lib/engine/components/opal/opal-call.cpp
@@ -91,7 +91,7 @@ private:
 };
 
 
-Opal::Call::Call (OpalManager & _manager, Ekiga::ServiceCore & _core, const std::string& uri)
+Opal::Call::Call (OpalManager& _manager, const Ekiga::ServiceCore& _core, const std::string& uri)
   : OpalCall (_manager), Ekiga::Call (), core (_core), remote_uri (uri),
     call_setup(false),outgoing(true),jitter(0)
 {
diff --git a/lib/engine/components/opal/opal-call.h b/lib/engine/components/opal/opal-call.h
index bcd63d3..f0edc11 100644
--- a/lib/engine/components/opal/opal-call.h
+++ b/lib/engine/components/opal/opal-call.h
@@ -57,7 +57,7 @@ namespace Opal {
 
 public:
 
-    Call (OpalManager & _manager, Ekiga::ServiceCore & _core, const std::string & uri);
+    Call (OpalManager &_manager, const Ekiga::ServiceCore& _core, const std::string & uri);
 
     ~Call ();
 
@@ -204,7 +204,7 @@ private:
     /*
      * Variables
      */
-    Ekiga::ServiceCore & core;
+    const Ekiga::ServiceCore& core;
 
     std::string local_party_name;
     std::string remote_party_name;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]