summaryrefslogtreecommitdiffstats
path: root/svx/source/dialog/sendreportunx.cxx
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2005-09-05 07:55:41 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2005-09-05 07:55:41 +0000
commitca2946acafbce88e39f1f333d57b4ed8af274baf (patch)
tree1e80ca8ca3782627cae3dc18879f26c64cf91fc7 /svx/source/dialog/sendreportunx.cxx
parentINTEGRATION: CWS cmcfixes15 (1.24.38); FILE MERGED (diff)
downloadcore-ca2946acafbce88e39f1f333d57b4ed8af274baf.tar.gz
core-ca2946acafbce88e39f1f333d57b4ed8af274baf.zip
INTEGRATION: CWS hr18 (1.2.512); FILE MERGED
2005/08/10 11:29:38 hr 1.2.512.1: #i153157#: trim_string(): missing parantheses, invalid access to empty string
Diffstat (limited to 'svx/source/dialog/sendreportunx.cxx')
-rw-r--r--svx/source/dialog/sendreportunx.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/dialog/sendreportunx.cxx b/svx/source/dialog/sendreportunx.cxx
index 5f392af8a705..781d9e754619 100644
--- a/svx/source/dialog/sendreportunx.cxx
+++ b/svx/source/dialog/sendreportunx.cxx
@@ -47,12 +47,12 @@ static string trim_string( const string& rString )
{
string temp = rString;
- while ( temp.length() && temp[0] == ' ' || temp[0] == '\t' )
+ while ( temp.length() && (temp[0] == ' ' || temp[0] == '\t') )
temp.erase( 0, 1 );
string::size_type len = temp.length();
- while ( len && temp[len-1] == ' ' || temp[len-1] == '\t' )
+ while ( len && (temp[len-1] == ' ' || temp[len-1] == '\t') )
{
temp.erase( len - 1, 1 );
len = temp.length();