diff options
author | Tor Lillqvist <tml@iki.fi> | 2011-10-20 19:56:07 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2011-10-20 19:58:11 +0300 |
commit | f3e10529134029a7853cdca925bc7091a639bc8a (patch) | |
tree | 36d0cbd3144f98bbe5dc242ffe356862a4404811 /ucbhelper/source | |
parent | 21352f88caba9dee73d5a87c8e3724d17ac6b428 (diff) |
Attempt workaround for possible bug in Apple's LLVM g++ 4.2.1
Diffstat (limited to 'ucbhelper/source')
-rw-r--r-- | ucbhelper/source/provider/contenthelper.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ucbhelper/source/provider/contenthelper.cxx b/ucbhelper/source/provider/contenthelper.cxx index ecc7ad24d1f9..7d2dc10df748 100644 --- a/ucbhelper/source/provider/contenthelper.cxx +++ b/ucbhelper/source/provider/contenthelper.cxx @@ -795,7 +795,18 @@ uno::Reference< uno::XInterface > SAL_CALL ContentImplHelper::getParent() } } +#if defined(__llvm__) && __GNUC__ == 4 && __GNUC_MINOR__ == 2 + // No idea if this works... but it compiles, links, and just + // "return xParent" causes an undefined symbol: + + // uno::Reference<uno::XInterface>::operator uno::Reference<uno::XInterface> const&() const + + // (com::sun::star:: omitted for brevity) + + return uno::Reference< uno::XInterface >(xParent); +#else return xParent; +#endif } //========================================================================= |