diff options
author | Constantin Shalnev <c.shalnev@corp.mail.ru> | 2016-02-03 16:14:12 +0300 |
---|---|---|
committer | Sergey Yershov <yershov@corp.mail.ru> | 2016-03-23 16:21:37 +0300 |
commit | 2a6fe823e26739c5cc298848519d9b9931f24de6 (patch) | |
tree | ed189a6267614cce07731d21020c6b784f981669 /testing | |
parent | 706e9279cde965837c212a110e6b119790523579 (diff) |
[new downloader] fixed notes
Diffstat (limited to 'testing')
-rw-r--r-- | testing/testing.hpp | 6 | ||||
-rw-r--r-- | testing/testingmain.cpp | 12 |
2 files changed, 7 insertions, 11 deletions
diff --git a/testing/testing.hpp b/testing/testing.hpp index 6bbfe3b0ef..c8110f15d0 100644 --- a/testing/testing.hpp +++ b/testing/testing.hpp @@ -42,9 +42,9 @@ namespace my namespace testing { - void RunEventLoop(); - void StopEventLoop(); -} // namespace testing +void RunEventLoop(); +void StopEventLoop(); +} // namespace testing // This struct contains parsed command line options. It may contain pointers to argc contents. struct CommandLineOptions diff --git a/testing/testingmain.cpp b/testing/testingmain.cpp index 1d081b1b94..4b66b99847 100644 --- a/testing/testingmain.cpp +++ b/testing/testingmain.cpp @@ -37,23 +37,19 @@ namespace testing void RunEventLoop() { -#ifdef OMIM_OS_IPHONE_DEVICE +#if defined(OMIM_OS_IPHONE_DEVICE) CFRunLoopRun(); -#else -# ifdef QAPP +#elif defined (QAPP) QAPP::exec(); -# endif #endif } void StopEventLoop() { -#ifdef OMIM_OS_IPHONE_DEVICE +#if defined(OMIM_OS_IPHONE_DEVICE) CFRunLoopStop(CFRunLoopGetMain()); -#else -# ifdef QAPP +#elif defined(QAPP) QAPP::exit(); -# endif #endif } |