summaryrefslogtreecommitdiffstats
path: root/sot/source/sdstor/stgdir.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sot/source/sdstor/stgdir.cxx')
-rw-r--r--sot/source/sdstor/stgdir.cxx12
1 files changed, 2 insertions, 10 deletions
diff --git a/sot/source/sdstor/stgdir.cxx b/sot/source/sdstor/stgdir.cxx
index b2e64967c436..f400d79cbd20 100644
--- a/sot/source/sdstor/stgdir.cxx
+++ b/sot/source/sdstor/stgdir.cxx
@@ -901,11 +901,7 @@ StgDirEntry* StgDirStrm::Find( StgDirEntry& rStg, const OUString& rName )
{
StgEntry aEntry;
aEntry.Init();
- if( !aEntry.SetName( rName ) )
- {
- m_rIo.SetError( SVSTREAM_GENERALERROR );
- return nullptr;
- }
+ aEntry.SetName( rName );
// Look in the directory attached to the entry
StgDirEntry aTest( aEntry );
return static_cast<StgDirEntry*>( rStg.m_pDown->Find( &aTest ) );
@@ -921,11 +917,7 @@ StgDirEntry* StgDirStrm::Create( StgDirEntry& rStg, const OUString& rName, StgEn
StgEntry aEntry;
aEntry.Init();
aEntry.SetType( eType );
- if( !aEntry.SetName( rName ) )
- {
- m_rIo.SetError( SVSTREAM_GENERALERROR );
- return nullptr;
- }
+ aEntry.SetName( rName );
StgDirEntry* pRes = Find( rStg, rName );
if( pRes )
{