summaryrefslogtreecommitdiffstats
path: root/cosv
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2012-08-03 07:02:46 +0200
committerDavid Tardon <dtardon@redhat.com>2012-08-03 07:02:46 +0200
commit46305229cc5915b0625cc08d99522dc19508be75 (patch)
tree65d2b999c464b1ec1b1f18ebe23b13a3ab0ddac9 /cosv
parentDisplay all templates in the overlay if we hide the search bar. (diff)
downloadcore-46305229cc5915b0625cc08d99522dc19508be75.tar.gz
core-46305229cc5915b0625cc08d99522dc19508be75.zip
WaE: enumeral and non-enumeral type in conditional expression
Change-Id: I6352836e28c8cb04ba3de40bfcb0095096ee1dd5
Diffstat (limited to 'cosv')
-rw-r--r--cosv/inc/cosv/str_types.hxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/cosv/inc/cosv/str_types.hxx b/cosv/inc/cosv/str_types.hxx
index 59f289b81edf..ecf9c997c271 100644
--- a/cosv/inc/cosv/str_types.hxx
+++ b/cosv/inc/cosv/str_types.hxx
@@ -32,11 +32,8 @@ struct str
typedef ::size_t position;
typedef ::size_t size;
- enum constants
- {
- npos = position(-1),
- maxsize = size(-1)
- };
+ static const position npos = -1;
+ static const size maxsize = -1;
enum insert_mode
{