[Libreoffice-commits] .: 5 commits - bridges/source codemaker/source registry/source stoc/source

Caolán McNamara caolan at kemper.freedesktop.org
Thu Nov 25 08:06:56 PST 2010


 bridges/source/remote/urp/urp_job.hxx          |   10 +++++-----
 bridges/source/remote/urp/urp_marshal.hxx      |    2 +-
 bridges/source/remote/urp/urp_marshal_decl.hxx |    6 +++---
 codemaker/source/cunomaker/cunotype.hxx        |    2 +-
 registry/source/regimpl.hxx                    |    2 +-
 stoc/source/security/file_policy.cxx           |    4 ++--
 6 files changed, 13 insertions(+), 13 deletions(-)

New commits:
commit a828e9f6f8b11fd22dc4843c3490b4f98ed27522
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Nov 25 11:43:31 2010 +0000

    cppcheck: methods can be const

diff --git a/bridges/source/remote/urp/urp_marshal.hxx b/bridges/source/remote/urp/urp_marshal.hxx
index c4ed70e..823d636 100644
--- a/bridges/source/remote/urp/urp_marshal.hxx
+++ b/bridges/source/remote/urp/urp_marshal.hxx
@@ -69,7 +69,7 @@ namespace bridges_urp
         return ( m_pos - m_base ) == 2*sizeof( sal_Int32 );
     }
 
-    inline sal_Int32 Marshal::getSize()
+    inline sal_Int32 Marshal::getSize() const
     {
         return ((sal_Int32) (m_pos - m_base));
     }
diff --git a/bridges/source/remote/urp/urp_marshal_decl.hxx b/bridges/source/remote/urp/urp_marshal_decl.hxx
index 411730b..ac27462 100644
--- a/bridges/source/remote/urp/urp_marshal_decl.hxx
+++ b/bridges/source/remote/urp/urp_marshal_decl.hxx
@@ -87,12 +87,12 @@ namespace bridges_urp
         
         // is only valid, after finish has been called.
         // valid until destructed.
-        inline sal_Int32 getSize();
+        inline sal_Int32 getSize() const;
         
-        inline sal_Int32 getPos()
+        inline sal_Int32 getPos() const
             { return m_pos - m_base; }
     
-        inline sal_Bool isSystemLittleEndian()
+        inline sal_Bool isSystemLittleEndian() const
             { return g_bMarshalSystemIsLittleEndian; }
         
     private:
commit 1b33b8e65a602c4368f6b2bb612a02957ef1c802
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Nov 25 11:22:06 2010 +0000

    cppcheck: methods can be const

diff --git a/codemaker/source/cunomaker/cunotype.hxx b/codemaker/source/cunomaker/cunotype.hxx
index e735246..bc1026c 100644
--- a/codemaker/source/cunomaker/cunotype.hxx
+++ b/codemaker/source/cunomaker/cunotype.hxx
@@ -124,7 +124,7 @@ protected:
     ::rtl::OString	checkRealBaseType(const ::rtl::OString& type, sal_Bool bResolveTypeOnly = sal_False);
     void	dumpCppuGetTypeMemberDecl(FileStream& o, CunoTypeDecl eDeclFlag);
 
-     sal_Bool isNestedType() 
+     sal_Bool isNestedType() const
         { return m_bIsNestedType; };
 
      RegistryKeyNames& getNestedTypeNames() 
commit f06734fdc61a3f92c7c7ac988f207afe20816149
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Nov 25 11:17:35 2010 +0000

    remove empty method

diff --git a/registry/source/regimpl.hxx b/registry/source/regimpl.hxx
index 1bd3abc..1e47c9d 100644
--- a/registry/source/regimpl.hxx
+++ b/registry/source/regimpl.hxx
@@ -123,7 +123,7 @@ public:
 
     ORegKey* 	getRootKey();
 
-    const store::OStoreFile& getStoreFile()
+    const store::OStoreFile& getStoreFile() const
         { return m_file; }
 
     const rtl::OUString& 	getName() const
commit 90287eddd555be45b26ece5cb689f777337c6fb3
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Nov 25 11:17:01 2010 +0000

    remove empty method

diff --git a/stoc/source/security/file_policy.cxx b/stoc/source/security/file_policy.cxx
index 0efb65b..78f02d3 100644
--- a/stoc/source/security/file_policy.cxx
+++ b/stoc/source/security/file_policy.cxx
@@ -199,12 +199,12 @@ class PolicyReader
     inline void back( sal_Unicode c ) SAL_THROW( () )
         { m_back = c; }
     
-    inline bool isWhiteSpace( sal_Unicode c ) SAL_THROW( () )
+    inline bool isWhiteSpace( sal_Unicode c ) const SAL_THROW( () )
         { return (' ' == c || '\t' == c || '\n' == c || '\r' == c); }
     void skipWhiteSpace()
         SAL_THROW( (RuntimeException) );
     
-    inline bool isCharToken( sal_Unicode c ) SAL_THROW( () )
+    inline bool isCharToken( sal_Unicode c ) const SAL_THROW( () )
         { return (';' == c || ',' == c || '{' == c || '}' == c); }
     
 public:
commit 3a7600501d9eccca6aeb38c77e83d30d397a2676
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Nov 25 11:05:20 2010 +0000

    cppcheck: methods can be const

diff --git a/bridges/source/remote/urp/urp_job.hxx b/bridges/source/remote/urp/urp_job.hxx
index 08bc43f..fe353e8 100644
--- a/bridges/source/remote/urp/urp_job.hxx
+++ b/bridges/source/remote/urp/urp_job.hxx
@@ -117,13 +117,13 @@ public:
 
     inline void setBridgePropertyCall()
         { m_bBridgePropertyCall = sal_True; }
-    inline sal_Bool isBridgePropertyCall()
+    inline sal_Bool isBridgePropertyCall() const
         { return m_bBridgePropertyCall; }
-    inline sal_Bool isOneway()
+    inline sal_Bool isOneway() const
         { return m_bOneway; }
 
-        inline void setUnmarshal( Unmarshal *p )
-                { m_pUnmarshal = p; }
+    inline void setUnmarshal( Unmarshal *p )
+        { m_pUnmarshal = p; }
 public:
     typelib_InterfaceMethodTypeDescription    *m_pMethodType;
     typelib_InterfaceAttributeTypeDescription *m_pAttributeType;
@@ -248,7 +248,7 @@ public:
             m_aEntries[m_nCalls].m_bIgnoreCache = bIgnoreCache;
         }
 
-    inline sal_Bool isFull()
+    inline sal_Bool isFull() const
         { return m_nCalls >= m_nMaxMessages; }
 
     inline sal_Int8 *getHeap( sal_Int32 nSizeToAlloc )


More information about the Libreoffice-commits mailing list