diff options
author | Noel Grandin <noel@peralex.com> | 2014-06-25 08:43:20 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2014-06-29 14:48:11 -0700 |
commit | 22a09c25c8f56e3aab3ac1de6009461b4f063862 (patch) | |
tree | 613c8119bf9d4ec54fd3098142961f6ae1722cf5 /comphelper | |
parent | f206f0d5b0409573f003f141c1c5d519ba7d74c8 (diff) |
fixes for up-casting to Reference<XInterface>
Fix regressions introduced with
6a043e9c0acff20e1618ca8ec15c21d5d0fd0d37 "Use the new type-checking
Reference constructor to reduce code noise"
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
(cherry picked from commit 533c6cb6bad6ef0432e8eebbfd4daf90ef71f3b4)
Conflicts:
framework/source/uifactory/menubarfactory.cxx
Change-Id: I85662856f21c810a7db497fe3b0e116f075b1687
Reviewed-on: https://gerrit.libreoffice.org/9921
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 32aff0f4f03f..c93f9667ee6a 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; } |