diff options
author | Max Horn | 2002-07-16 10:52:48 +0000 |
---|---|---|
committer | Max Horn | 2002-07-16 10:52:48 +0000 |
commit | a94f9de525219a17409181d408c06cb929314c3d (patch) | |
tree | 51251823928f4adadf6d2e23b4b5302beafefc39 /gui/util.cpp | |
parent | 21f82f094626fbb2b93e193bfb1d7dc02595c803 (diff) | |
download | scummvm-rg350-a94f9de525219a17409181d408c06cb929314c3d.tar.gz scummvm-rg350-a94f9de525219a17409181d408c06cb929314c3d.tar.bz2 scummvm-rg350-a94f9de525219a17409181d408c06cb929314c3d.zip |
patch by painelf that enables editing in the ListWidget (alas as usual with many mods to his patch by me :-)
svn-id: r4561
Diffstat (limited to 'gui/util.cpp')
-rw-r--r-- | gui/util.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gui/util.cpp b/gui/util.cpp index 26475a8392..11f3aa4716 100644 --- a/gui/util.cpp +++ b/gui/util.cpp @@ -163,6 +163,13 @@ String& String::operator +=(char c) return *this; } +void String::deleteLastChar() { + if (_len > 0) { + _len--; + _str[_len]=0; + } +} + void String::clear() { if (_str) @@ -187,3 +194,4 @@ void String::ensureCapacity(int new_len, bool keep_old) free(old_str); } } + |