hello,
short presentation: have some C++ and java programming skills, but not
used it intensively since 4-5 years... Need some refresh, hence I am
starting with easy hacks... Will allow me to refresh knowledge and have
a look at LibreOffice
Hope I am in line with the patch policy. PS: I will always try to
rebuild before sending them.
As soon as my git send-email will be fixed, mails for patches will be
better...
regards
pjacquod
From 195de6fac4e6d2c271db0252b4ea71aa2ecc2e81 Mon Sep 17 00:00:00 2001
From: pjacquod <pjacquod@alumni.ethz.ch>
Date: Sat, 13 Nov 2010 12:39:36 +0100
Subject: [PATCH] RTL_CONSTASCII_USTRINGPARAM cleaning in base
base/reportdesign/source/ui/report should now be clean and having no more
createFromAssci with constant.
---
reportdesign/source/ui/report/ReportController.cxx | 4 ++--
reportdesign/source/ui/report/propbrw.cxx | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/reportdesign/source/ui/report/ReportController.cxx
b/reportdesign/source/ui/report/ReportController.cxx
index eeb35f2..5efea58 100644
--- a/reportdesign/source/ui/report/ReportController.cxx
+++ b/reportdesign/source/ui/report/ReportController.cxx
@@ -1710,7 +1710,7 @@ void OReportController::impl_initialize( )
throw Exception();
::comphelper::NamedValueCollection aArgs(getModel()->getArgs());
- setMode(aArgs.getOrDefault("Mode", rtl::OUString::createFromAscii("normal")));
+ setMode(aArgs.getOrDefault("Mode",
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("normal"))));
listen(true);
setEditable( !m_aReportModel->IsReadOnly() );
@@ -1812,7 +1812,7 @@ void OReportController::doOpenHelpAgent()
{
if (getFrame().is())
{
- rtl::OUString suURL =
rtl::OUString::createFromAscii("vnd.sun.star.help://shared/text/shared/explorer/database/rep_main.xhp?UseDB=no&DbPAR=swriter");
+ rtl::OUString
suURL(RTL_CONSTASCII_USTRINGPARAM("vnd.sun.star.help://shared/text/shared/explorer/database/rep_main.xhp?UseDB=no&DbPAR=swriter"));
openHelpAgent(suURL);
// openHelpAgent(68245 /* HID_REPORT_DESIGN... UNKNOWN */ );
// HID_APP_REPORT_TREE
diff --git a/reportdesign/source/ui/report/propbrw.cxx b/reportdesign/source/ui/report/propbrw.cxx
index 5bfb868..e21620d 100644
--- a/reportdesign/source/ui/report/propbrw.cxx
+++ b/reportdesign/source/ui/report/propbrw.cxx
@@ -121,7 +121,7 @@ PropBrw::PropBrw(const Reference< XMultiServiceFactory >& _xORB,Window*
pParent,
if (m_xMeAsFrame.is())
{
m_xMeAsFrame->initialize( VCLUnoHelper::GetInterface ( this ) );
- m_xMeAsFrame->setName(::rtl::OUString::createFromAscii("report property browser"));
// change name!
+ m_xMeAsFrame->setName(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("report property
browser"))); // change name!
}
}
catch (Exception&)
--
1.7.1
Context
- [Libreoffice] [PATCH] RTL_CONSTASCII_USTRINGPARAM cleaning in base · Pierre-André Jacquod
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.