nemiver r695 - in trunk: . src/persp/dbgperspective



Author: dodji
Date: Thu Jan 17 22:07:43 2008
New Revision: 695
URL: http://svn.gnome.org/viewvc/nemiver?rev=695&view=rev

Log:
[varstreeview] trivial editing for better compliance

	* src/persp/dbgperspective/nmv-vars-treeview.cc: don't use
	  "namespace foo {" but rather NEMIVER_BEGIN_NAMESPACE(foo) otherwise
	  the file gets over-indented, especially for people using emacs.
	  Also, replace "class Foo {" by "class NEMIVER_API Foo". This is
	  very important because it gives us a change to use the gcc
	  visibility feature when it gets un-broken.


Modified:
   trunk/ChangeLog
   trunk/src/persp/dbgperspective/nmv-vars-treeview.cc
   trunk/src/persp/dbgperspective/nmv-vars-treeview.h

Modified: trunk/src/persp/dbgperspective/nmv-vars-treeview.cc
==============================================================================
--- trunk/src/persp/dbgperspective/nmv-vars-treeview.cc	(original)
+++ trunk/src/persp/dbgperspective/nmv-vars-treeview.cc	Thu Jan 17 22:07:43 2008
@@ -29,7 +29,7 @@
 
 namespace vutil=nemiver::variables_utils2 ;
 
-namespace nemiver {
+NEMIVER_BEGIN_NAMESPACE (nemiver)
 
 VarsTreeViewSafePtr VarsTreeView::create ()
 {
@@ -75,4 +75,5 @@
     return m_tree_store;
 }
 
-} // namespace nemiver
+NEMIVER_END_NAMESPACE (nemiver)
+

Modified: trunk/src/persp/dbgperspective/nmv-vars-treeview.h
==============================================================================
--- trunk/src/persp/dbgperspective/nmv-vars-treeview.h	(original)
+++ trunk/src/persp/dbgperspective/nmv-vars-treeview.h	Thu Jan 17 22:07:43 2008
@@ -32,26 +32,25 @@
 
 using nemiver::common::SafePtr;
 
-namespace nemiver {
+NEMIVER_BEGIN_NAMESPACE (nemiver)
+class VarsTreeView;
 
-    class VarsTreeView;
-
-    typedef SafePtr<VarsTreeView,
-                    nemiver::ui_utils::WidgetRef,
-                    nemiver::ui_utils::WidgetUnref> VarsTreeViewSafePtr ;
-
-    class VarsTreeView : public Gtk::TreeView
-    {
-        public:
-            static VarsTreeViewSafePtr create () ;
-            Glib::RefPtr<Gtk::TreeStore>& get_tree_store ();
-
-        protected:
-            VarsTreeView ();
-            VarsTreeView (Glib::RefPtr<Gtk::TreeStore>& model);
-
-        private:
-            Glib::RefPtr<Gtk::TreeStore> m_tree_store;
-    };
-} // namespace nemiver
+typedef SafePtr<VarsTreeView,
+                nemiver::ui_utils::WidgetRef,
+                nemiver::ui_utils::WidgetUnref> VarsTreeViewSafePtr ;
+
+class NEMIVER_API VarsTreeView : public Gtk::TreeView
+{
+    public:
+        static VarsTreeViewSafePtr create () ;
+        Glib::RefPtr<Gtk::TreeStore>& get_tree_store ();
+
+    protected:
+        VarsTreeView ();
+        VarsTreeView (Glib::RefPtr<Gtk::TreeStore>& model);
+
+    private:
+        Glib::RefPtr<Gtk::TreeStore> m_tree_store;
+};
+NEMIVER_END_NAMESPACE (nemiver)
 #endif // __NMV_VARS_TREEVIEW_H__



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]