Jelajahi Sumber

Use Polycode namespace for Linux PolycodeView.

Cameron Hart 14 tahun lalu
induk
melakukan
091993eea0
2 mengubah file dengan 19 tambahan dan 11 penghapusan
  1. 9 5
      Core/Build/Linux/PolycodeView.cpp
  2. 10 6
      Core/Build/Linux/PolycodeView.h

+ 9 - 5
Core/Build/Linux/PolycodeView.cpp

@@ -3,12 +3,16 @@
 #include <stdio.h>
 #include <stdlib.h>
 
-PolycodeView::PolycodeView(const char *title) : PolycodeViewBase() {
-	windowTitle = title;
-	windowData = &windowTitle;
-}
+namespace Polycode {
+
+    PolycodeView::PolycodeView(const char *title) : PolycodeViewBase() {
+        windowTitle = title;
+        windowData = &windowTitle;
+    }
+
+    PolycodeView::~PolycodeView() {
 
-PolycodeView::~PolycodeView() {
+    }
 
 }
 

+ 10 - 6
Core/Build/Linux/PolycodeView.h

@@ -3,10 +3,14 @@
 #include <Polycode.h>
 #include "PolySDLCore.h"
 
-class PolycodeView : public PolycodeViewBase {
-	public:
-		PolycodeView(const char *title);
-		~PolycodeView();
+namespace Polycode {
 
-		String windowTitle;
-};
+    class PolycodeView : public PolycodeViewBase {
+        public:
+            PolycodeView(const char *title);
+            ~PolycodeView();
+
+            String windowTitle;
+    };
+
+}