diff options
author | Francois Tigeot <ftigeot@wolfpond.org> | 2011-06-14 23:57:25 +0200 |
---|---|---|
committer | Francois Tigeot <ftigeot@wolfpond.org> | 2011-06-15 00:00:33 +0200 |
commit | 7ddb897a42ca4966e691ea841c147534b02f1c13 (patch) | |
tree | db26877d0014b3a0f01371d465592a4497329cd7 | |
parent | bddefc5117b574e2cafc5fa0d04193c0968bb5c1 (diff) |
Remove TOOLS_INETDEF_OS
We don't need yet another unmaintainable platform name macro...
-rw-r--r-- | sfx2/source/bastyp/frmhtmlw.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sfx2/source/bastyp/frmhtmlw.cxx b/sfx2/source/bastyp/frmhtmlw.cxx index 6d12c0e09e2b..c73f595056a6 100644 --- a/sfx2/source/bastyp/frmhtmlw.cxx +++ b/sfx2/source/bastyp/frmhtmlw.cxx @@ -55,6 +55,8 @@ #include <com/sun/star/script/XTypeConverter.hpp> #include <com/sun/star/document/XDocumentProperties.hpp> +#include <rtl/bootstrap.hxx> + // ----------------------------------------------------------------------- @@ -145,7 +147,9 @@ void SfxFrameHTMLWriter::Out_DocInfo( SvStream& rStrm, const String& rBaseURL, // Who we are String sGenerator( SfxResId( STR_HTML_GENERATOR ) ); - sGenerator.SearchAndReplaceAscii( "%1", String( DEFINE_CONST_UNICODE( TOOLS_INETDEF_OS ) ) ); + ::rtl::OUString os( RTL_CONSTASCII_USTRINGPARAM("$_OS") ); + ::rtl::Bootstrap::expandMacros(os); + sGenerator.SearchAndReplaceAscii( "%1", os ); OutMeta( rStrm, pIndent, OOO_STRING_SVTOOLS_HTML_META_generator, sGenerator, sal_False, eDestEnc, pNonConvertableChars ); if( i_xDocProps.is() ) |