Explorar o código

Renamed TemplateCache::ClearTemplateCache to TemplateCache::Clear

glockenmeier %!s(int64=12) %!d(string=hai) anos
pai
achega
b76987526b
Modificáronse 3 ficheiros con 4 adicións e 4 borrados
  1. 2 2
      Source/Core/Factory.cpp
  2. 1 1
      Source/Core/TemplateCache.cpp
  3. 1 1
      Source/Core/TemplateCache.h

+ 2 - 2
Source/Core/Factory.cpp

@@ -531,10 +531,10 @@ void Factory::ClearStyleSheetCache()
 	StyleSheetFactory::ClearStyleSheetCache();
 	StyleSheetFactory::ClearStyleSheetCache();
 }
 }
 
 
-/// Clears the template cache. This will force template to be reloaded.
+/// Clears the template cache. This will force templates to be reloaded.
 void Factory::ClearTemplateCache()
 void Factory::ClearTemplateCache()
 {
 {
-	TemplateCache::ClearTemplateCache();
+	TemplateCache::Clear();
 }
 }
 
 
 // Registers an instancer for all RKTEvents
 // Registers an instancer for all RKTEvents

+ 1 - 1
Source/Core/TemplateCache.cpp

@@ -114,7 +114,7 @@ Template* TemplateCache::GetTemplate(const String& name)
 	return NULL;
 	return NULL;
 }
 }
 
 
-void TemplateCache::ClearTemplateCache()
+void TemplateCache::Clear()
 {
 {
 	for (Templates::iterator i = instance->templates.begin(); i != instance->templates.end(); ++i)
 	for (Templates::iterator i = instance->templates.begin(); i != instance->templates.end(); ++i)
 		delete (*i).second;
 		delete (*i).second;

+ 1 - 1
Source/Core/TemplateCache.h

@@ -54,7 +54,7 @@ public:
 	static Template* GetTemplate(const String& id);
 	static Template* GetTemplate(const String& id);
 
 
 	/// Clear the template cache.
 	/// Clear the template cache.
-	static void ClearTemplateCache();
+	static void Clear();
 
 
 private:
 private:
 	TemplateCache();
 	TemplateCache();