From a9e424f177605de071673001902d0995008bea89 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Wed, 1 Apr 2009 13:59:53 +0000 Subject: Formatting. svn-id: r39789 --- common/str.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/str.h') 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]; } -- cgit v1.2.3