Selaa lähdekoodia

Move from namespace to static class

Donald Carr 7 vuotta sitten
vanhempi
commit
fa5736ae84
1 muutettua tiedostoa jossa 6 lisäystä ja 3 poistoa
  1. 6 3
      src/main.cpp

+ 6 - 3
src/main.cpp

@@ -94,10 +94,13 @@ void NativeUtils::monitorRunPath(const QString &path)
     emit rebootRequiredChanged();
 }
 
-namespace ArtView {
+class ArtView {
+public:
     static QQuickView* artView();
-    static QQmlEngine* sharedQmlEngine = nullptr;
-}
+    static QQmlEngine* sharedQmlEngine;
+};
+
+QQmlEngine* ArtView::sharedQmlEngine = nullptr;
 
 QQuickView* ArtView::artView()
 {