Fix namespace for LxQt::xFitMan() to avoid undefined reference when linking with...
authorHone Jen Yee (PCMan) <pcman.tw@gmail.com>
Wed, 16 Oct 2013 03:52:20 +0000 (11:52 +0800)
committerHone Jen Yee (PCMan) <pcman.tw@gmail.com>
Wed, 16 Oct 2013 03:52:20 +0000 (11:52 +0800)
CMakeLists.txt
lxqtxfitman.cpp

index 36f65b1..6663241 100644 (file)
@@ -195,7 +195,7 @@ target_link_libraries(lxqt
     ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY}
     ${QT_QTDBUS_LIBRARY}
     ${X11_X11_LIB}
-    ${QTXDG_LIBRARY}
+    ${QTXDG_LIBRARIES}
 )
 
 set_target_properties(lxqt PROPERTIES
index 6c7cc14..13d84c9 100644 (file)
@@ -67,7 +67,7 @@
 #define _NET_WM_STATE_ADD       1    // add/set property
 #define _NET_WM_STATE_TOGGLE    2    // toggle property
 
-using namespace LxQt;
+namespace LxQt {
 
 const XfitMan&  xfitMan()
 {
@@ -975,3 +975,5 @@ bool XfitMan::isWindowManagerActive() const
     }
     return false;
 }
+
+} // namespace LxQt