diff options
author | Caolán McNamara <caolanm@redhat.com> | 2010-11-25 11:43:31 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2010-11-25 12:02:13 +0000 |
commit | 0ae3237320d843c1a9933dfe6bb656bcddcf3c92 (patch) | |
tree | f35ef8a8228b31a5ac8718a730059d6bf674b96b | |
parent | 0d985fd44bb7794851825a3f14acc3c25758259b (diff) |
cppcheck: methods can be const
-rw-r--r-- | bridges/source/remote/urp/urp_marshal.hxx | 2 | ||||
-rw-r--r-- | bridges/source/remote/urp/urp_marshal_decl.hxx | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/bridges/source/remote/urp/urp_marshal.hxx b/bridges/source/remote/urp/urp_marshal.hxx index f66528d74703..60292cd23612 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 a07f6ea48f5a..639d08e47e5c 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: |