diff options
author | Johannes Schickel | 2009-04-01 13:59:53 +0000 |
---|---|---|
committer | Johannes Schickel | 2009-04-01 13:59:53 +0000 |
commit | a9e424f177605de071673001902d0995008bea89 (patch) | |
tree | efbc7501b2e2c9614e5eabd83acc5223973b5843 /common | |
parent | f0456d67a873f8d6dd8d0c8262dd454bacb235b9 (diff) | |
download | scummvm-rg350-a9e424f177605de071673001902d0995008bea89.tar.gz scummvm-rg350-a9e424f177605de071673001902d0995008bea89.tar.bz2 scummvm-rg350-a9e424f177605de071673001902d0995008bea89.zip |
Formatting.
svn-id: r39789
Diffstat (limited to 'common')
-rw-r--r-- | common/str.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/str.h b/common/str.h index b9b269468f..5792692030 100644 --- a/common/str.h +++ b/common/str.h @@ -180,7 +180,7 @@ public: inline bool empty() const { return (_size == 0); } char lastChar() const { return (_size > 0) ? _str[_size-1] : 0; } - char operator [](int idx) const { + char operator[](int idx) const { assert(_str && idx >= 0 && idx < (int)_size); return _str[idx]; } |