mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
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:
parent
40edc025b5
commit
29c93f87e6
@ -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"];
|
||||
|
@ -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);
|
||||
|
@ -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
|
||||
|
||||
|
@ -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_;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user