summaryrefslogtreecommitdiff
path: root/reportdesign
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-05-10 08:35:54 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-05-10 10:18:32 +0100
commit5f1d65fe21a1690bb31736ebada13380554d9c82 (patch)
treeb904235076e1d1065f9612b5a047cfbb06d18f29 /reportdesign
parentf55c92211630b4e90531645dbd8ae3350fd9a437 (diff)
WaE: msvc2008 C4928 copy-ctor confusion
Change-Id: Id086aedc27977b4ca81299a00a340a65284118b8
Diffstat (limited to 'reportdesign')
-rw-r--r--reportdesign/source/ui/report/ReportController.cxx2
-rw-r--r--reportdesign/source/ui/report/ReportSection.cxx3
2 files changed, 2 insertions, 3 deletions
diff --git a/reportdesign/source/ui/report/ReportController.cxx b/reportdesign/source/ui/report/ReportController.cxx
index ae45e4418a10..13de5327e4b2 100644
--- a/reportdesign/source/ui/report/ReportController.cxx
+++ b/reportdesign/source/ui/report/ReportController.cxx
@@ -257,7 +257,7 @@ void lcl_getReportControlFormat(const Sequence< PropertyValue >& aArgs,
}
else
{
- uno::Reference<uno::XInterface> xInterface = xReportControlFormat;
+ uno::Reference<uno::XInterface> xInterface(xReportControlFormat);
_rControlsFormats.push_back(xInterface);
}
diff --git a/reportdesign/source/ui/report/ReportSection.cxx b/reportdesign/source/ui/report/ReportSection.cxx
index dbc67153513a..fe0271084c53 100644
--- a/reportdesign/source/ui/report/ReportSection.cxx
+++ b/reportdesign/source/ui/report/ReportSection.cxx
@@ -727,8 +727,7 @@ void OReportSection::fillControlModelSelection(::std::vector< uno::Reference< un
const OObjectBase* pObj = dynamic_cast<const OObjectBase*>(pDlgEdObj);
if ( pObj )
{
- uno::Reference<uno::XInterface> xInterface =
- pObj->getReportComponent();
+ uno::Reference<uno::XInterface> xInterface(pObj->getReportComponent());
_rSelection.push_back(xInterface);
}
}