diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-01-29 16:13:08 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-01-29 16:13:08 +0000 |
commit | 498b5080cc0c5e81d23dbc2e3b3bbcef0fc534bc (patch) | |
tree | 394562a4a566211a6ce0ab0893a73d8734cb5890 | |
parent | 2756fcdca153f2410c87e607223d4356301352d1 (diff) |
remove dangerously broken >>= operator
-rw-r--r-- | forms/source/xforms/model.cxx | 29 | ||||
-rw-r--r-- | forms/source/xforms/model.hxx | 4 |
2 files changed, 0 insertions, 33 deletions
diff --git a/forms/source/xforms/model.cxx b/forms/source/xforms/model.cxx index 26c7981ddfdf..877baab5e1c6 100644 --- a/forms/source/xforms/model.cxx +++ b/forms/source/xforms/model.cxx @@ -778,33 +778,4 @@ Sequence<sal_Int8> Model::getImplementationId() return getUnoTunnelID(); } - -// -// 'shift' operators for getting data into and out of Anys -// - -void operator <<= ( com::sun::star::uno::Any& rAny, - xforms::Model* pModel) -{ - Reference<XPropertySet> xPropSet( static_cast<XPropertySet*>( pModel ) ); - rAny <<= xPropSet; -} - -bool operator >>= ( xforms::Model* pModel, - com::sun::star::uno::Any& rAny ) -{ - bool bRet = false; - - // acquire model pointer through XUnoTunnel - Reference<XUnoTunnel> xTunnel( rAny, UNO_QUERY ); - if( xTunnel.is() ) - { - pModel = reinterpret_cast<xforms::Model*>( - xTunnel->getSomething( xforms::Model::getUnoTunnelID() ) ); - bRet = true; - } - - return bRet; -} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/forms/source/xforms/model.hxx b/forms/source/xforms/model.hxx index 03db8210f388..a237d7de14fd 100644 --- a/forms/source/xforms/model.hxx +++ b/forms/source/xforms/model.hxx @@ -428,10 +428,6 @@ public: }; -// finally, allow 'shifting' of Model objects into/out of Any -void operator <<= ( com::sun::star::uno::Any&, const xforms::Model* ); -bool operator >>= ( xforms::Model*, const com::sun::star::uno::Any& ); - } // namespace #endif |