diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2011-11-15 18:18:21 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2011-11-15 18:29:47 +0100 |
commit | 16aa2c1dd66d6ac8f26c460a7287a1ad6139eed3 (patch) | |
tree | 99a194b6e1892a17825003a6b7cb45698b2cc8f9 /extensions/source | |
parent | 240dc332ad59fc2c45eccb4b2f4923fde09a784b (diff) |
Removed obsolete OOOBASEVERSION, OOOPACKAGEVERSION.
With the basis/brand split undone, they are always the same as
PRODUCTVERSION and ABOUTBOXPRODUCTVERSION, respectively.
Diffstat (limited to 'extensions/source')
-rw-r--r-- | extensions/source/update/check/updatehdl.cxx | 43 |
1 files changed, 2 insertions, 41 deletions
diff --git a/extensions/source/update/check/updatehdl.cxx b/extensions/source/update/check/updatehdl.cxx index 9f1656f15ca8..931448ea10d9 100644 --- a/extensions/source/update/check/updatehdl.cxx +++ b/extensions/source/update/check/updatehdl.cxx @@ -880,51 +880,12 @@ void UpdateHandler::setFullVersion( rtl::OUString& rString ) uno::Reference< container::XNameAccess > xNameAccess( xConfigAccess, uno::UNO_QUERY_THROW ); rtl::OUString aProductVersion; - rtl::OUString aProductFullVersion; - xNameAccess->getByName(UNISTRING("ooSetupVersion")) >>= aProductVersion; - aProductFullVersion = aProductVersion; - sal_Int32 nVerIndex = rString.indexOf( aProductVersion ); if ( nVerIndex != -1 ) { - rtl::OUString aPackageVersion = UNISTRING( "${$BRAND_BASE_DIR/program/" SAL_CONFIGFILE("version") ":OOOPackageVersion}" ); - rtl::Bootstrap::expandMacros( aPackageVersion ); - - if ( aPackageVersion.getLength() ) - { - sal_Int32 nTokIndex = 0; - rtl::OUString aVersionMinor = aPackageVersion.getToken( 1, '.', nTokIndex ); - rtl::OUString aVersionMicro; - - if ( nTokIndex > 0 ) - aVersionMicro = aPackageVersion.getToken( 0, '.', nTokIndex ); - - if ( aVersionMinor.getLength() == 0 ) - aVersionMinor = UNISTRING( "0" ); - if ( aVersionMicro.getLength() == 0 ) - aVersionMicro = UNISTRING( "0" ); - - sal_Int32 nIndex = aProductFullVersion.indexOf( '.' ); - if ( nIndex == -1 ) - { - aProductFullVersion += UNISTRING( "." ); - aProductFullVersion += aVersionMinor; - } - else - { - nIndex = aProductFullVersion.indexOf( '.', nIndex+1 ); - } - if ( nIndex == -1 ) - { - aProductFullVersion += UNISTRING( "." ); - aProductFullVersion += aVersionMicro; - } - else - { - aProductFullVersion = aProductFullVersion.replaceAt( nIndex+1, aProductFullVersion.getLength()-nIndex-1, aVersionMicro ); - } - } + rtl::OUString aProductFullVersion; + xNameAccess->getByName(UNISTRING("ooSetupVersionAboutBox")) >>= aProductFullVersion; rString = rString.replaceAt( nVerIndex, aProductVersion.getLength(), aProductFullVersion ); } } |