summaryrefslogtreecommitdiff
path: root/src/newgrf_storage.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2013-12-23 18:09:03 +0000
committerfrosch <frosch@openttd.org>2013-12-23 18:09:03 +0000
commiteca86d1baf5f374d25dcc9bf0ff2bad328bdffab (patch)
treede92bcef7f015768dbe15e8a3a9513fbd377d911 /src/newgrf_storage.cpp
parenta9e8d7a361470b7c97a858f6663144f02a929cfd (diff)
downloadopenttd-eca86d1baf5f374d25dcc9bf0ff2bad328bdffab.tar.xz
(svn r26174) -Codechange: Rename BaseStorageArray to BasePersistentStorageArray
Diffstat (limited to 'src/newgrf_storage.cpp')
-rw-r--r--src/newgrf_storage.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/newgrf_storage.cpp b/src/newgrf_storage.cpp
index ac91a122f..0c6ea9fcd 100644
--- a/src/newgrf_storage.cpp
+++ b/src/newgrf_storage.cpp
@@ -18,12 +18,12 @@ PersistentStoragePool _persistent_storage_pool("PersistentStorage");
INSTANTIATE_POOL_METHODS(PersistentStorage)
/** The changed storage arrays */
-static std::set<BaseStorageArray*> *_changed_storage_arrays = new std::set<BaseStorageArray*>;
+static std::set<BasePersistentStorageArray*> *_changed_storage_arrays = new std::set<BasePersistentStorageArray*>;
/**
* Remove references to use.
*/
-BaseStorageArray::~BaseStorageArray()
+BasePersistentStorageArray::~BasePersistentStorageArray()
{
_changed_storage_arrays->erase(this);
}
@@ -34,7 +34,7 @@ BaseStorageArray::~BaseStorageArray()
* arrays, which saves quite a few clears, etc. after callbacks.
* @param storage the array that has changed
*/
-void AddChangedStorage(BaseStorageArray *storage)
+void AddChangedPersistentStorage(BasePersistentStorageArray *storage)
{
_changed_storage_arrays->insert(storage);
}
@@ -49,10 +49,10 @@ void AddChangedStorage(BaseStorageArray *storage)
* - reverting to the previous version
* @param keep_changes do we save or revert the changes since the last #ClearChanges?
*/
-void ClearStorageChanges(bool keep_changes)
+void ClearPersistentStorageChanges(bool keep_changes)
{
/* Loop over all changes arrays */
- for (std::set<BaseStorageArray*>::iterator it = _changed_storage_arrays->begin(); it != _changed_storage_arrays->end(); it++) {
+ for (std::set<BasePersistentStorageArray*>::iterator it = _changed_storage_arrays->begin(); it != _changed_storage_arrays->end(); it++) {
(*it)->ClearChanges(keep_changes);
}