summaryrefslogtreecommitdiffstats
path: root/comphelper/source
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-06-25 08:43:20 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-06-25 17:10:43 +0200
commit533c6cb6bad6ef0432e8eebbfd4daf90ef71f3b4 (patch)
tree0575fd7acded0e19664352f44633cff93c3ab6b6 /comphelper/source
parentlibgltf: try to fix the MSVC2010 build (diff)
downloadcore-533c6cb6bad6ef0432e8eebbfd4daf90ef71f3b4.tar.gz
core-533c6cb6bad6ef0432e8eebbfd4daf90ef71f3b4.zip
fixes for up-casting to Reference<XInterface>
Fix regressions introduced with 6a043e9c0acff20e1618ca8ec15c21d5d0fd0d37 "Use the new type-checking Reference constructor to reduce code noise" Change-Id: I85662856f21c810a7db497fe3b0e116f075b1687 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'comphelper/source')
-rw-r--r--comphelper/source/processfactory/processfactory.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/comphelper/source/processfactory/processfactory.cxx b/comphelper/source/processfactory/processfactory.cxx
index 04c81cb3d7d7..211067a5e75f 100644
--- a/comphelper/source/processfactory/processfactory.cxx
+++ b/comphelper/source/processfactory/processfactory.cxx
@@ -79,14 +79,14 @@ Reference< XComponentContext > getComponentContext(
catch (beans::UnknownPropertyException & e) {
throw DeploymentException(
"unknown service factory DefaultContext property: " + e.Message,
- factory );
+ Reference<XInterface>(factory, UNO_QUERY) );
}
}
if ( !xRet.is() )
{
throw DeploymentException(
"no service factory DefaultContext",
- factory );
+ Reference<XInterface>(factory, UNO_QUERY) );
}
return xRet;
}