From 56071d2fb0e34fcb7367414413c1ad1c97d0b549 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Sat, 23 Dec 2017 14:40:00 -0500 Subject: [PATCH] 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 a6e0bbe7ec..6e60e8261c 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 773a4265b8..ddc6a88800 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 30019ceb16..8758315bab 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)