Kaydet (Commit) 498b5080 authored tarafından Caolán McNamara's avatar Caolán McNamara

remove dangerously broken >>= operator

üst 2756fcdc
......@@ -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: */
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment