commit 56071d2fb0e34fcb7367414413c1ad1c97d0b549
Author: Richard Heck <[email protected]>
Date:   Sat Dec 23 14:40:00 2017 -0500

    Dummy theApp() method should return a pointer.
---
 src/client/client.cpp                 |    2 +-
 src/support/tests/dummy_functions.cpp |    2 +-
 src/tex2lyx/tex2lyx.cpp               |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/client/client.cpp b/src/client/client.cpp
index a6e0bbe..6e60e82 100644
--- a/src/client/client.cpp
+++ b/src/client/client.cpp
@@ -74,7 +74,7 @@ struct App {
 };
 
 App app;
-App theApp() { return app; }
+App * theApp() { return &app; }
 
 // Dummy LyXRC support
 struct LyXRC {
diff --git a/src/support/tests/dummy_functions.cpp 
b/src/support/tests/dummy_functions.cpp
index 773a426..ddc6a88 100644
--- a/src/support/tests/dummy_functions.cpp
+++ b/src/support/tests/dummy_functions.cpp
@@ -67,6 +67,6 @@ namespace lyx {
        };
 
        App app;
-       App theApp() { return app; }
+       App * theApp() { return &app; }
 
 } // namespace lyx
diff --git a/src/tex2lyx/tex2lyx.cpp b/src/tex2lyx/tex2lyx.cpp
index 30019ce..8758315 100644
--- a/src/tex2lyx/tex2lyx.cpp
+++ b/src/tex2lyx/tex2lyx.cpp
@@ -55,7 +55,7 @@ struct App {
 };
 
 App app;
-App theApp() { return app; }
+App * theApp() { return &app; }
 
 
 string const trimSpaceAndEol(string const & a)

Reply via email to