diff options
author | Caolán McNamara <caolanm@redhat.com> | 2010-11-23 21:20:10 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2010-11-23 21:31:52 +0000 |
commit | 7f1eed1c77381c041d6f3490a7755e6948d218d8 (patch) | |
tree | a18388b7a92af787dda1a11c8e89fa6a62134344 /xmerge/source | |
parent | c887c7182a70f0c6fa485f06f13a94dd38ccbccc (diff) |
cppcheck: This function can be const
Diffstat (limited to 'xmerge/source')
-rw-r--r-- | xmerge/source/activesync/XMergeSync.cpp | 2 | ||||
-rw-r--r-- | xmerge/source/activesync/XMergeSync.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/xmerge/source/activesync/XMergeSync.cpp b/xmerge/source/activesync/XMergeSync.cpp index 13c5cdf57f88..3edc4c94a0e7 100644 --- a/xmerge/source/activesync/XMergeSync.cpp +++ b/xmerge/source/activesync/XMergeSync.cpp @@ -831,7 +831,7 @@ long CXMergeSyncModule::LockServer(BOOL fLock) return ::InterlockedDecrement(&m_lLocks); } -long CXMergeSyncModule::GetLockCount() +long CXMergeSyncModule::GetLockCount() const { return m_lLocks + m_lObjs; } diff --git a/xmerge/source/activesync/XMergeSync.h b/xmerge/source/activesync/XMergeSync.h index 1afab6629f1d..f50167e1f833 100644 --- a/xmerge/source/activesync/XMergeSync.h +++ b/xmerge/source/activesync/XMergeSync.h @@ -20,7 +20,7 @@ protected: long m_lObjs; public: - long GetLockCount(); + long GetLockCount() const; long LockServer(BOOL fLock); HINSTANCE m_hInst; CXMergeSyncModule(); |