getTransferData: Throw exception, if unsupported type
This commit is contained in:
@@ -2,9 +2,9 @@
|
|||||||
*
|
*
|
||||||
* $RCSfile: eeobj.cxx,v $
|
* $RCSfile: eeobj.cxx,v $
|
||||||
*
|
*
|
||||||
* $Revision: 1.1 $
|
* $Revision: 1.2 $
|
||||||
*
|
*
|
||||||
* last change: $Author: mt $ $Date: 2001-02-09 16:50:46 $
|
* last change: $Author: mt $ $Date: 2001-03-07 14:48:38 $
|
||||||
*
|
*
|
||||||
* The Contents of this file are made available subject to the terms of
|
* The Contents of this file are made available subject to the terms of
|
||||||
* either of the following licenses
|
* either of the following licenses
|
||||||
@@ -132,6 +132,10 @@ uno::Any EditDataObject::getTransferData( const datatransfer::DataFlavor& rFlavo
|
|||||||
delete pEditEngine;
|
delete pEditEngine;
|
||||||
delete pTmpPool;
|
delete pTmpPool;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
throw( datatransfer::UnsupportedFlavorException() );
|
||||||
|
}
|
||||||
|
|
||||||
return aAny;
|
return aAny;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user