summaryrefslogtreecommitdiffstats
path: root/forms/source/xforms
diff options
context:
space:
mode:
Diffstat (limited to 'forms/source/xforms')
-rw-r--r--forms/source/xforms/binding.cxx3
-rw-r--r--forms/source/xforms/submission/submission_post.cxx3
-rw-r--r--forms/source/xforms/xpathlib/xpathlib.cxx2
3 files changed, 3 insertions, 5 deletions
diff --git a/forms/source/xforms/binding.cxx b/forms/source/xforms/binding.cxx
index 75e4f0de1817..440309f7b656 100644
--- a/forms/source/xforms/binding.cxx
+++ b/forms/source/xforms/binding.cxx
@@ -707,9 +707,8 @@ void Binding::valueModified()
void Binding::distributeMIP( const css::uno::Reference<css::xml::dom::XNode> & rxNode ) {
- OUString sEventName("xforms-generic");
css::xforms::XFormsEventConcrete *pEvent = new css::xforms::XFormsEventConcrete;
- pEvent->initXFormsEvent(sEventName, true, false);
+ pEvent->initXFormsEvent("xforms-generic", true, false);
Reference<XEvent> xEvent(pEvent);
// naive depth-first traversal
diff --git a/forms/source/xforms/submission/submission_post.cxx b/forms/source/xforms/submission/submission_post.cxx
index db9b868b26fc..d055de2d6a62 100644
--- a/forms/source/xforms/submission/submission_post.cxx
+++ b/forms/source/xforms/submission/submission_post.cxx
@@ -53,7 +53,6 @@ CSubmission::SubmissionResult CSubmissionPost::submit(const css::uno::Reference<
ucbhelper::Content aContent(m_aURLObj.GetMainURL(INetURLObject::DecodeMechanism::NONE), aEnvironment, comphelper::getProcessComponentContext());
// use post command
- OUString aCommandName("post");
PostCommandArgument2 aPostArgument;
aPostArgument.Source = apSerialization->getInputStream();
css::uno::Reference< XActiveDataSink > aSink(new ucbhelper::ActiveDataSink);
@@ -62,7 +61,7 @@ CSubmission::SubmissionResult CSubmissionPost::submit(const css::uno::Reference<
aPostArgument.Referer.clear();
Any aCommandArgument;
aCommandArgument <<= aPostArgument;
- aContent.executeCommand( aCommandName, aCommandArgument);
+ aContent.executeCommand( "post", aCommandArgument);
try {
m_aResultStream = aSink->getInputStream();
diff --git a/forms/source/xforms/xpathlib/xpathlib.cxx b/forms/source/xforms/xpathlib/xpathlib.cxx
index b5e498266c41..c60f5bdd10e5 100644
--- a/forms/source/xforms/xpathlib/xpathlib.cxx
+++ b/forms/source/xforms/xpathlib/xpathlib.cxx
@@ -294,7 +294,7 @@ static bool parseDateTime(const OUString& aString, DateTime& aDateTime)
return false;
sal_Int32 nDateLength = 10;
- sal_Int32 nTimeLength = 8;
+ sal_Int32 const nTimeLength = 8;
OUString aDateString = aDateTimeString.copy(0, nDateLength);
OUString aTimeString = aDateTimeString.copy(nDateLength+1, nTimeLength);