ZVISION: Move trimCommentsAndWhiteSpace() into the script manager
This allows us to remove the last remnants of utility.*
This commit is contained in:
parent
7630e3204e
commit
77705752ef
19 changed files with 43 additions and 132 deletions
|
@ -29,7 +29,6 @@
|
|||
#include "zvision/graphics/cursors/cursor_manager.h"
|
||||
#include "zvision/core/save_manager.h"
|
||||
#include "zvision/scripting/actions.h"
|
||||
#include "zvision/core/utility.h"
|
||||
#include "zvision/scripting/sidefx/timer_node.h"
|
||||
|
||||
#include "common/algorithm.h"
|
||||
|
@ -812,6 +811,16 @@ void ScriptManager::flushEvent(Common::EventType type) {
|
|||
}
|
||||
}
|
||||
|
||||
void ScriptManager::trimCommentsAndWhiteSpace(Common::String *string) const {
|
||||
for (int i = string->size() - 1; i >= 0; i--) {
|
||||
if ((*string)[i] == '#') {
|
||||
string->erase(i);
|
||||
}
|
||||
}
|
||||
|
||||
string->trim();
|
||||
}
|
||||
|
||||
ValueSlot::ValueSlot(ScriptManager *scriptManager, const char *slotValue):
|
||||
_scriptManager(scriptManager) {
|
||||
value = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue