]> git.xonotic.org Git - xonotic/netradiant.git/commitdiff
* renamed class LoadModule into CLoadModule because LoadModule is already a registere...
authormattn <mattn@8a3a26a2-13c4-0310-b231-cf6edde360e5>
Thu, 19 Jun 2008 11:56:48 +0000 (11:56 +0000)
committermattn <mattn@8a3a26a2-13c4-0310-b231-cf6edde360e5>
Thu, 19 Jun 2008 11:56:48 +0000 (11:56 +0000)
* fixed some other windows compilation problems

git-svn-id: https://zerowing.idsoftware.com/svn/radiant/GtkRadiant/trunk@256 8a3a26a2-13c4-0310-b231-cf6edde360e5

libs/traverselib.h
radiant/mainframe.cpp

index 1cd0a95e0782d78680ab4b8d80bb1a3ad2b25eb8..183113b86fc98e270f34d8bc90d724926f8b0b32 100644 (file)
@@ -52,6 +52,11 @@ public:
     m_observer->insert(node);
     return *this;
   }
+  TraversableObserverInsertOutputIterator& operator=(const NodeSmartReference& node)
+  { 
+    m_observer->insert(node);
+    return *this;
+  }
   TraversableObserverInsertOutputIterator& operator*() { return *this; }
   TraversableObserverInsertOutputIterator& operator++() { return *this; }
   TraversableObserverInsertOutputIterator& operator++(int) { return *this; }
@@ -77,18 +82,22 @@ public:
     m_observer->erase(node);
     return *this;
   }
+  TraversableObserverEraseOutputIterator& operator=(const NodeSmartReference& node)
+  { 
+    m_observer->erase(node);
+    return *this;
+  }
   TraversableObserverEraseOutputIterator& operator*() { return *this; }
   TraversableObserverEraseOutputIterator& operator++() { return *this; }
   TraversableObserverEraseOutputIterator& operator++(int) { return *this; }
 };
-
 typedef UnsortedSet<NodeSmartReference> UnsortedNodeSet;
 
 /// \brief Calls \p observer->\c insert for each node that exists only in \p other and \p observer->\c erase for each node that exists only in \p self
 inline void nodeset_diff(const UnsortedNodeSet& self, const UnsortedNodeSet& other, scene::Traversable::Observer* observer)
 {
-  std::vector<NodeReference> sorted(self.begin(), self.end());
-  std::vector<NodeReference> other_sorted(other.begin(), other.end());
+  std::vector<NodeSmartReference> sorted(self.begin(), self.end());
+  std::vector<NodeSmartReference> other_sorted(other.begin(), other.end());
 
   std::sort(sorted.begin(), sorted.end());
   std::sort(other_sorted.begin(), other_sorted.end());
index 33797301c6908d6a38ac80478c2c1dfddfb55232..ad0035ebb6d4d68cc677542d868ba38a8b35f862 100644 (file)
@@ -502,11 +502,11 @@ void gamemode_set(const char* gamemode)
 
 #include "os/dir.h"
 
-class LoadModule
+class CLoadModule
 {
   const char* m_path;
 public:
-  LoadModule(const char* path) : m_path(path)
+  CLoadModule(const char* path) : m_path(path)
   {
   }
   void operator()(const char* name) const
@@ -532,7 +532,7 @@ const char* const c_library_extension =
 
 void Radiant_loadModules(const char* path)
 {
-  Directory_forEach(path, MatchFileExtension<LoadModule>(c_library_extension, LoadModule(path)));
+  Directory_forEach(path, MatchFileExtension<CLoadModule>(c_library_extension, CLoadModule(path)));
 }
 
 void Radiant_loadModulesFromRoot(const char* directory)