diff options
author | Noel Grandin <noel@peralex.com> | 2014-06-25 08:43:20 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-06-26 19:33:21 +0000 |
commit | 1249dd9f358681f61c8ec69a90ce61829601fd0b (patch) | |
tree | b3187f00f64a9995a1df441e23a9d08bf499ce6b /comphelper | |
parent | db298f22a04e409a555d7c3ccec4c1dae91a6e1b (diff) |
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>
(cherry picked from commit 533c6cb6bad6ef0432e8eebbfd4daf90ef71f3b4)
Reviewed-on: https://gerrit.libreoffice.org/9919
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'comphelper')
-rw-r--r-- | comphelper/source/processfactory/processfactory.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/comphelper/source/processfactory/processfactory.cxx b/comphelper/source/processfactory/processfactory.cxx index 65c08ebad790..82b30e36b808 100644 --- a/comphelper/source/processfactory/processfactory.cxx +++ b/comphelper/source/processfactory/processfactory.cxx @@ -80,14 +80,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; } |