]> git.lyx.org Git - features.git/commitdiff
Make these const, too. I mean, why not?
authorRichard Heck <rgheck@comcast.net>
Mon, 29 Mar 2010 21:31:17 +0000 (21:31 +0000)
committerRichard Heck <rgheck@comcast.net>
Mon, 29 Mar 2010 21:31:17 +0000 (21:31 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33934 a592a061-630c-0410-9148-cb99ea01b6c8

src/LyX.cpp
src/LyX.h
src/support/Messages.h
src/tex2lyx/tex2lyx.cpp

index 233ee9be3e5253ebf50b90fe5ad1f6d6a91c2328..9c419dff4290532be9a17f25082c57faadf5114e 100644 (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"];
index f4b7a62241f5a7bb4e56b9fb3648a31462b8f18e..fdfe0c929aef4a45d38f1fc90365e590c275f9b0 100644 (file)
--- a/src/LyX.h
+++ b/src/LyX.h
@@ -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);
index b7d8a52dc7494091313a5ebb729373605ce83297..08500a9044fc61c15226110d27d3151b34505802 100644 (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
 
index a10e958a5011ae36c228dc80541bc3f4efe831e4..b6e8aee5559d00b3e7c8251a7c331a59430ab6fe 100644 (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_;
 }