summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2010-12-24 14:27:45 +0000
committerCaolán McNamara <caolanm@redhat.com>2010-12-29 20:54:35 +0000
commit5ef4ae729009a459b0e23d2ef9ee55bde16a2f99 (patch)
tree3e088d0f51c37740801da94503d16d4ee472e9fd
parent50e49fd312f829cbab1f4430ad6db3d869fb4a5a (diff)
cppcheck: this can be const
-rw-r--r--extensions/source/bibliography/toolbar.cxx2
-rw-r--r--extensions/source/bibliography/toolbar.hxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/extensions/source/bibliography/toolbar.cxx b/extensions/source/bibliography/toolbar.cxx
index 986a9d78aad1..e7fcf991a63d 100644
--- a/extensions/source/bibliography/toolbar.cxx
+++ b/extensions/source/bibliography/toolbar.cxx
@@ -87,7 +87,7 @@ void BibToolBarListener::statusChanged(const ::com::sun::star::frame::FeatureSta
}
};
-rtl::OUString BibToolBarListener::GetCommand()
+rtl::OUString BibToolBarListener::GetCommand() const
{
return aCommand;
}
diff --git a/extensions/source/bibliography/toolbar.hxx b/extensions/source/bibliography/toolbar.hxx
index 23237389fe1b..ad6f05072309 100644
--- a/extensions/source/bibliography/toolbar.hxx
+++ b/extensions/source/bibliography/toolbar.hxx
@@ -60,7 +60,7 @@ public:
BibToolBarListener(BibToolBar *pTB,rtl::OUString aStr,sal_uInt16 nId);
~BibToolBarListener();
- rtl::OUString GetCommand();
+ rtl::OUString GetCommand() const;
// ::com::sun::star::lang::XEventListener
// we do not hold References to dispatches, so there is nothing to do on disposal