Make these const, too. I mean, why not?

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33934 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2010-03-29 21:31:17 +00:00
parent 40edc025b5
commit 29c93f87e6
4 changed files with 8 additions and 8 deletions

View File

@ -1238,14 +1238,14 @@ Movers & theSystemMovers()
}
Messages & getMessages(string const & language)
Messages const & getMessages(string const & language)
{
LASSERT(singleton_, /**/);
return singleton_->messages(language);
}
Messages & getGuiMessages()
Messages const & getGuiMessages()
{
LASSERT(singleton_, /**/);
return singleton_->pimpl_->messages_["GUI"];

View File

@ -123,8 +123,8 @@ private:
friend ServerSocket & theServerSocket();
friend Converters & theConverters();
friend Converters & theSystemConverters();
friend Messages & getMessages(std::string const & language);
friend Messages & getGuiMessages();
friend Messages const & getMessages(std::string const & language);
friend Messages const & getGuiMessages();
friend KeyMap & theTopLevelKeymap();
friend Movers & theMovers();
friend Mover const & getMover(std::string const & fmt);

View File

@ -50,10 +50,10 @@ private:
/// Access to the unique Messages object for the passed \p language.
/// Implementation is in LyX.cpp.
extern Messages & getMessages(std::string const & language);
extern Messages const & getMessages(std::string const & language);
/// Access to the unique Messages object used for GUI element.
/// Implementation is in LyX.cpp.
extern Messages & getGuiMessages();
extern Messages const & getGuiMessages();
} // namespace lyx

View File

@ -44,13 +44,13 @@ namespace lyx {
// Dummy translation support
Messages messages_;
Messages & getMessages(std::string const &)
Messages const & getMessages(std::string const &)
{
return messages_;
}
Messages & getGuiMessages()
Messages const & getGuiMessages()
{
return messages_;
}