]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/textureentry.h
allow undo “make detail/structural”, <3 @SpiKe, thanks @Garux, fix #76
[xonotic/netradiant.git] / radiant / textureentry.h
index 7045b29aef0d4a8c55d9e991d1a2bbd87bbe2d8c..ed2f9f5aee6d58ed4786645c98cd7d4cee5136eb 100644 (file)
@@ -35,7 +35,7 @@ class EntryCompletion {
     ui::ListStore m_store;
     IdleDraw m_idleUpdate;
 public:
-    EntryCompletion() : m_store(0), m_idleUpdate(UpdateCaller(*this))
+    EntryCompletion() : m_store(ui::null), m_idleUpdate(UpdateCaller(*this))
     {
     }
 
@@ -43,7 +43,7 @@ public:
 
     void append(const char *string);
 
-    typedef MemberCaller1<EntryCompletion, const char *, &EntryCompletion::append> AppendCaller;
+    using AppendCaller = MemberCaller<EntryCompletion, void(const char *), &EntryCompletion::append>;
 
     void fill();
 
@@ -51,7 +51,7 @@ public:
 
     void update();
 
-    typedef MemberCaller<EntryCompletion, &EntryCompletion::update> UpdateCaller;
+    using UpdateCaller = MemberCaller<EntryCompletion, void(), &EntryCompletion::update>;
 };
 
 class TextureNameList {