diff --git a/CMakeLists.txt b/CMakeLists.txt index e3367c511..60e04ce85 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -57,7 +57,7 @@ endif() file(GLOB INTERFACES "interfaces/*.h") -#add_compile_definitions(USE_AM) +add_compile_definitions(USE_AM) #因为单元测试需要直接测试源代码,而主程序代码中include的单元使用了相对路径 #单元测试的CMakeLists和主程序的CMakeLists路径不同,编译单元测试时会提示找不到文件 diff --git a/frame/dbus/entryinterface.cpp b/frame/dbus/entryinterface.cpp index 18443a888..8b3242446 100644 --- a/frame/dbus/entryinterface.cpp +++ b/frame/dbus/entryinterface.cpp @@ -86,7 +86,6 @@ public: : CurrentWindow(0) , IsActive(false) , IsDocked(false) - , mode(0) {} // begin member variables