Commit 2f170bc10a98a15daebea8dd19730ae5bf7ddb0b
1 parent
e94fcd2b
too early for C++11x
Showing
2 changed files
with
6 additions
and
2 deletions
CMakeLists.txt
| ... | ... | @@ -40,7 +40,7 @@ if(APPLE) |
| 40 | 40 | endif() |
| 41 | 41 | |
| 42 | 42 | if(UNIX) |
| 43 | - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wno-c++11-extensions -fvisibility=hidden -fno-omit-frame-pointer") | |
| 43 | + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -fvisibility=hidden -fno-omit-frame-pointer") | |
| 44 | 44 | endif() |
| 45 | 45 | |
| 46 | 46 | if(CMAKE_COMPILER_IS_GNUXX) | ... | ... |
sdk/plugins/meta.cpp
| ... | ... | @@ -330,10 +330,14 @@ class LoadStoreTransform : public MetaTransform |
| 330 | 330 | Q_OBJECT |
| 331 | 331 | Q_PROPERTY(QString description READ get_description WRITE set_description RESET reset_description STORED false) |
| 332 | 332 | BR_PROPERTY(QString, description, "Identity") |
| 333 | - Transform *transform = NULL; | |
| 334 | 333 | |
| 334 | + Transform *transform; | |
| 335 | 335 | QString baseName; |
| 336 | 336 | |
| 337 | +public: | |
| 338 | + LoadStoreTransform() : transform(NULL) {} | |
| 339 | + | |
| 340 | +private: | |
| 337 | 341 | void init() |
| 338 | 342 | { |
| 339 | 343 | if (transform != NULL) return; | ... | ... |