From f64e6ac7fe3b7398881ec1bbaf523c7160d1cd28 Mon Sep 17 00:00:00 2001 From: Timothee 'TTimo' Besset Date: Mon, 17 Sep 2012 21:31:35 -0500 Subject: [PATCH] const correctness --- libs/synapse.h | 4 ++-- libs/synapse/synapse.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libs/synapse.h b/libs/synapse.h index c400e8e..bd177a5 100644 --- a/libs/synapse.h +++ b/libs/synapse.h @@ -307,8 +307,8 @@ public: CSynapseClient(); virtual ~CSynapseClient(); -int GetAPICount(); ///< returns the number of APIs that this module provides -APIDescriptor_t* GetAPIDescriptor( int ); ///< retrieve specific information about on of the APIs +int GetAPICount() const; ///< returns the number of APIs that this module provides +APIDescriptor_t* GetAPIDescriptor( int ) const; ///< retrieve specific information about on of the APIs /*! Add the API to the CSynapseClient information diff --git a/libs/synapse/synapse.cpp b/libs/synapse/synapse.cpp index ff7d787..48a6c4a 100644 --- a/libs/synapse/synapse.cpp +++ b/libs/synapse/synapse.cpp @@ -816,11 +816,11 @@ CSynapseClient::~CSynapseClient(){ Shutdown(); } -int CSynapseClient::GetAPICount(){ +int CSynapseClient::GetAPICount() const { return mAPIDescriptors.size(); } -APIDescriptor_t* CSynapseClient::GetAPIDescriptor( int i ){ +APIDescriptor_t* CSynapseClient::GetAPIDescriptor( int i ) const { return mAPIDescriptors[i]; }