Kaydet (Commit) 92caee2e authored tarafından Matteo Casalin's avatar Matteo Casalin

sUpperNewNm is a duplicate(?) of sNewName

Change-Id: I8c45a3d19dd5c54bd35ad1320b8ed4f811f22bff
üst 5f3ec872
...@@ -1930,7 +1930,6 @@ void SwDoc::ReplaceUsedDBs( const std::vector<String>& rUsedDBNames, ...@@ -1930,7 +1930,6 @@ void SwDoc::ReplaceUsedDBs( const std::vector<String>& rUsedDBNames,
sNewName.SearchAndReplace( DB_DELIM, '.'); sNewName.SearchAndReplace( DB_DELIM, '.');
//the command type is not part of the condition //the command type is not part of the condition
sNewName = sNewName.GetToken(0, DB_DELIM); sNewName = sNewName.GetToken(0, DB_DELIM);
String sUpperNewNm( sNewName );
for( sal_uInt16 i = 0; i < rUsedDBNames.size(); ++i ) for( sal_uInt16 i = 0; i < rUsedDBNames.size(); ++i )
{ {
...@@ -1939,7 +1938,7 @@ void SwDoc::ReplaceUsedDBs( const std::vector<String>& rUsedDBNames, ...@@ -1939,7 +1938,7 @@ void SwDoc::ReplaceUsedDBs( const std::vector<String>& rUsedDBNames,
sDBName.SearchAndReplace( DB_DELIM, '.'); sDBName.SearchAndReplace( DB_DELIM, '.');
//cut off command type //cut off command type
sDBName = sDBName.GetToken(0, DB_DELIM); sDBName = sDBName.GetToken(0, DB_DELIM);
if( !sDBName.Equals( sUpperNewNm )) if( !sDBName.Equals( sNewName ))
{ {
sal_Int32 nPos = 0; sal_Int32 nPos = 0;
while ((nPos = rFormel.indexOf(sDBName, nPos))>=0) while ((nPos = rFormel.indexOf(sDBName, nPos))>=0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment