diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-06-19 14:28:14 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-06-19 14:28:14 +0000 |
commit | 8a0216bc45ebfb79b8c983a53d06db27022330ec (patch) | |
tree | 3fd141a8f4f61767d113c29de3ec9618a18db77e /svx/source/dialog/sendreportunx.cxx | |
parent | INTEGRATION: CWS warnings01 (1.17.222); FILE MERGED (diff) | |
download | core-8a0216bc45ebfb79b8c983a53d06db27022330ec.tar.gz core-8a0216bc45ebfb79b8c983a53d06db27022330ec.zip |
INTEGRATION: CWS warnings01 (1.3.228); FILE MERGED
2006/04/26 08:09:34 os 1.3.228.1: warnings removed
Diffstat (limited to 'svx/source/dialog/sendreportunx.cxx')
-rw-r--r-- | svx/source/dialog/sendreportunx.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/dialog/sendreportunx.cxx b/svx/source/dialog/sendreportunx.cxx index 781d9e754619..64aea24dee22 100644 --- a/svx/source/dialog/sendreportunx.cxx +++ b/svx/source/dialog/sendreportunx.cxx @@ -93,7 +93,7 @@ static string get_profile_string( const char *pFileName, const char *pSectionNam string keyname = line.substr( 0, iEqualSign ); keyname = trim_string( keyname ); - string value = line.substr( iEqualSign + 1, -1 ); + string value = line.substr( iEqualSign + 1, string::npos ); value = trim_string( value ); if ( @@ -123,7 +123,7 @@ static bool get_profile_bool( const char *pFileName, const char *pSectionName, c return false; } -static String get_profile_String( const char *pFileName, const char *pSectionName, const char *pKeyName, const char *pDefault = NULL ) +static String get_profile_String( const char *pFileName, const char *pSectionName, const char *pKeyName, const char * = NULL ) { string str = get_profile_string( pFileName, pSectionName, pKeyName ); String result( str.c_str(), RTL_TEXTENCODING_UTF8 ); |