summaryrefslogtreecommitdiff
path: root/sot/source/sdstor/stg.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sot/source/sdstor/stg.cxx')
-rw-r--r--sot/source/sdstor/stg.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sot/source/sdstor/stg.cxx b/sot/source/sdstor/stg.cxx
index 3ebd1c21a553..787c5adc3208 100644
--- a/sot/source/sdstor/stg.cxx
+++ b/sot/source/sdstor/stg.cxx
@@ -185,7 +185,7 @@ StorageStream::~StorageStream()
bool StorageStream::Equals( const BaseStorageStream& rStream ) const
{
- const StorageStream* pOther = PTR_CAST( StorageStream, &rStream );
+ const StorageStream* pOther = dynamic_cast<const StorageStream*>( &rStream );
return pOther && ( pOther->pEntry == pEntry );
}
@@ -948,7 +948,7 @@ bool Storage::ValidateMode( StreamMode nMode, StgDirEntry* p ) const
bool Storage::Equals( const BaseStorage& rStorage ) const
{
- const Storage* pOther = PTR_CAST( Storage, &rStorage );
+ const Storage* pOther = dynamic_cast<const Storage*>( &rStorage );
return pOther && ( pOther->pEntry == pEntry );
}