summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svdoole2.cxx
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2008-03-11 06:34:36 +0000
committerOliver Bolte <obo@openoffice.org>2008-03-11 06:34:36 +0000
commit1f01a1a6473bb8c8768d0834d3a2341203060848 (patch)
treea9ecc6061dc724621e49a9385e99bf882bada319 /svx/source/svdraw/svdoole2.cxx
parent9f263486ce4d28bbde3a6a8f3f679d5dbeee56da (diff)
#i86883# parse problem with Solaris compiler
Diffstat (limited to 'svx/source/svdraw/svdoole2.cxx')
-rw-r--r--svx/source/svdraw/svdoole2.cxx13
1 files changed, 9 insertions, 4 deletions
diff --git a/svx/source/svdraw/svdoole2.cxx b/svx/source/svdraw/svdoole2.cxx
index e700f653676e..0e7f7a7bb6cc 100644
--- a/svx/source/svdraw/svdoole2.cxx
+++ b/svx/source/svdraw/svdoole2.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: svdoole2.cxx,v $
*
- * $Revision: 1.86 $
+ * $Revision: 1.87 $
*
- * last change: $Author: kz $ $Date: 2008-03-05 17:01:19 $
+ * last change: $Author: obo $ $Date: 2008-03-11 07:34:36 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -703,7 +703,9 @@ sal_Bool SdrOle2Obj::UpdateLinkURL_Impl()
void SdrOle2Obj::BreakFileLink_Impl()
{
- uno::Reference<document::XStorageBasedDocument> xDoc( pModel ? pModel->getUnoModel() : uno::Reference<document::XStorageBasedDocument>(),uno::UNO_QUERY);
+ uno::Reference<document::XStorageBasedDocument> xDoc;
+ if ( pModel )
+ xDoc.set( pModel->getUnoModel(),uno::UNO_QUERY);
if ( xDoc.is() )
{
@@ -1962,7 +1964,10 @@ sal_Bool SdrOle2Obj::IsCalc() const
// -----------------------------------------------------------------------------
uno::Reference< frame::XModel > SdrOle2Obj::GetParentXModel()
{
- return uno::Reference< frame::XModel >(pModel ? pModel->getUnoModel() : uno::Reference< frame::XModel >(),uno::UNO_QUERY);
+ uno::Reference< frame::XModel > xDoc;
+ if ( pModel )
+ xDoc.set( pModel->getUnoModel(),uno::UNO_QUERY);
+ return xDoc;
}
// -----------------------------------------------------------------------------