remove dangerously broken >>= operator

This commit is contained in:
Caolán McNamara 2011-01-29 16:13:08 +00:00
parent 2756fcdca1
commit 498b5080cc
2 changed files with 0 additions and 33 deletions

View file

@ -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: */

View file

@ -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