summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorJoren De Cuyper <jorendc@libreoffice.org>2015-05-15 13:27:47 +0200
committerJoren De Cuyper <jorendc@libreoffice.org>2015-05-15 18:16:06 +0000
commit1e49e40c3694cd5750b65fc726b9684ae4185d4f (patch)
tree9da755471fb894a1905bbac91f5b90a67c448de0 /unotools
parent33414c8bf7a4eb8fa912bc0062237637a8e05be2 (diff)
tdf#91064: Revert "tdf#89790 DOCX: saving LO version number in app.xml"
This reverts commit 480ca7434a330b2678f9ef287cffd6d9cf27bed5. Change-Id: I69a16425fc36979d49f409bbd7921495a22a35dc Reviewed-on: https://gerrit.libreoffice.org/15737 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Joren De Cuyper <jorendc@libreoffice.org>
Diffstat (limited to 'unotools')
-rw-r--r--unotools/source/config/docinfohelper.cxx50
1 files changed, 17 insertions, 33 deletions
diff --git a/unotools/source/config/docinfohelper.cxx b/unotools/source/config/docinfohelper.cxx
index 0ea143cf89ec..b5d0cf9aa7b4 100644
--- a/unotools/source/config/docinfohelper.cxx
+++ b/unotools/source/config/docinfohelper.cxx
@@ -41,44 +41,29 @@ OUString DocInfoHelper::GetGeneratorString()
{
aResult.append( aValue.replace( ' ', '_' ) );
aResult.append( '/' );
- }
-
- aValue = GetVersionString();
- if ( !aValue.isEmpty() )
- {
- aResult.append( aValue );
- }
-
- return aResult.makeStringAndClear();
-}
-
-
-OUString DocInfoHelper::GetVersionString()
-{
- OUStringBuffer aResult;
- // version is <product_versions>_<product_extension>$<platform>
- OUString aValue( utl::ConfigManager::getProductVersion() );
- if ( !aValue.isEmpty() )
- {
- aResult.append( aValue.replace( ' ', '_' ) );
-
- aValue = utl::ConfigManager::getProductExtension();
+ aValue = utl::ConfigManager::getProductVersion();
if ( !aValue.isEmpty() )
{
aResult.append( aValue.replace( ' ', '_' ) );
+
+ aValue = utl::ConfigManager::getProductExtension();
+ if ( !aValue.isEmpty() )
+ {
+ aResult.append( aValue.replace( ' ', '_' ) );
+ }
}
- }
- OUString os( "$_OS" );
- OUString arch( "$_ARCH" );
- ::rtl::Bootstrap::expandMacros(os);
- ::rtl::Bootstrap::expandMacros(arch);
- aResult.append( '$' );
- aResult.append( os );
- aResult.append( '_' );
- aResult.append( arch );
- aResult.append( ' ' );
+ OUString os( "$_OS" );
+ OUString arch( "$_ARCH" );
+ ::rtl::Bootstrap::expandMacros(os);
+ ::rtl::Bootstrap::expandMacros(arch);
+ aResult.append( '$' );
+ aResult.append( os );
+ aResult.append( '_' );
+ aResult.append( arch );
+ aResult.append( ' ' );
+ }
// second product: LibreOffice_project/<build_information>
// build_information has '(' and '[' encoded as '$', ')' and ']' ignored
@@ -112,7 +97,6 @@ OUString DocInfoHelper::GetVersionString()
return aResult.makeStringAndClear();
}
-
} // end of namespace utl
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */