diff options
Diffstat (limited to 'extensions/source/update/check/updateprotocol.cxx')
-rw-r--r-- | extensions/source/update/check/updateprotocol.cxx | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/extensions/source/update/check/updateprotocol.cxx b/extensions/source/update/check/updateprotocol.cxx index 43d55c87b31f..0b083657b5bc 100644 --- a/extensions/source/update/check/updateprotocol.cxx +++ b/extensions/source/update/check/updateprotocol.cxx @@ -132,16 +132,15 @@ checkForUpdates( if ( !aUpdateInfoEnumeration.is() ) return false; // something went wrong .. - OUStringBuffer aBuffer; - aBuffer.append("/child::inst:description[inst:os=\'"); - aBuffer.append( rOS ); - aBuffer.append("\' and inst:arch=\'"); - aBuffer.append( rArch ); - aBuffer.append("\' and inst:gitid!=\'"); - aBuffer.append( rGitID ); - aBuffer.append("\']"); - - OUString aXPathExpression = aBuffer.makeStringAndClear(); + OUString aXPathExpression = + "/child::inst:description[inst:os=\'"+ + rOS + + "\' and inst:arch=\'"+ + rArch + + "\' and inst:gitid!=\'"+ + rGitID + + "\']"; + while( aUpdateInfoEnumeration->hasMoreElements() ) { |