From 1a784f6768595b62ce05076f22a2c93b90e24cc3 Mon Sep 17 00:00:00 2001 From: Oliver Bolte Date: Fri, 10 Oct 2008 13:02:43 +0000 Subject: CWS-TOOLING: integrate CWS cmcfixes49 --- xml2cmp/source/support/sistr.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'xml2cmp') diff --git a/xml2cmp/source/support/sistr.cxx b/xml2cmp/source/support/sistr.cxx index 1f63f771ee8c..c8277f7b8d5f 100644 --- a/xml2cmp/source/support/sistr.cxx +++ b/xml2cmp/source/support/sistr.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: sistr.cxx,v $ - * $Revision: 1.7 $ + * $Revision: 1.7.10.1 $ * * This file is part of OpenOffice.org. * @@ -567,7 +567,7 @@ int Simstr::pos_first(char c) const { int i = 0; - for (i = 0; i < len ? sz[i] != c : false; i++); + for (i = 0; i < len ? sz[i] != c : false; i++) ; if (i >= len) return NO_POS; else @@ -581,7 +581,7 @@ Simstr::pos_first_after( char c, int i = 0; if (startSearchPos >= i) i = startSearchPos+1; - for (; i < len ? sz[i] != c : false; i++); + for (; i < len ? sz[i] != c : false; i++) ; if (i >= len) return NO_POS; else @@ -593,7 +593,7 @@ int Simstr::pos_last(char c) const { int i = 0; - for (i = len-1; i >= 0 ? sz[i] != c : false; i--); + for (i = len-1; i >= 0 ? sz[i] != c : false; i--) ; if (i < 0) return NO_POS; else @@ -644,7 +644,7 @@ Simstr::is_no_text() const return true; int i; - for (i = 0; sz[i] <= 32 && i < len; i++); + for (i = 0; sz[i] <= 32 && i < len; i++) ; if (i < len) return false; return true; -- cgit