diff options
author | Ilya Zverev <zverik@textual.ru> | 2015-07-03 13:25:08 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:54:05 +0300 |
commit | dec9bd485c4d51c6ca7672cb67c74b2e8403e49a (patch) | |
tree | ca203f86f6d71faa18a78021efd76454508bca31 /testing | |
parent | 86c816063dda880e28120e91f723243da29ad79b (diff) |
[testing] Move g_testingOptions to a private namespace
Diffstat (limited to 'testing')
-rw-r--r-- | testing/testingmain.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/testing/testingmain.cpp b/testing/testingmain.cpp index 845fd38a4f..dfb9c168f9 100644 --- a/testing/testingmain.cpp +++ b/testing/testingmain.cpp @@ -28,16 +28,10 @@ #endif #endif -CommandLineOptions g_testingOptions; - -CommandLineOptions const & GetTestingOptions() -{ - return g_testingOptions; -} - namespace { bool g_bLastTestOK = true; +CommandLineOptions g_testingOptions; int const kOptionFieldWidth = 32; char const kFilterOption[] = "--filter="; @@ -97,6 +91,11 @@ void ParseOptions(int argc, char * argv[], CommandLineOptions & options) } } // namespace +CommandLineOptions const & GetTestingOptions() +{ + return g_testingOptions; +} + int main(int argc, char * argv[]) { #ifdef OMIM_UNIT_TEST_WITH_QT_EVENT_LOOP |