summaryrefslogtreecommitdiff
path: root/basic/source/sbx/sbxvar.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-11-17 11:16:07 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-11-17 12:26:32 +0000
commitd9e627039245dc42f003a7cf75642f619a621513 (patch)
treed10188cbdf0808f4c4c6663025e15bd4bac47284 /basic/source/sbx/sbxvar.cxx
parentbe3d2309f0376914b0135046f95b0bb592cf5078 (diff)
loplugin:unnecessaryvirtual
update the plugin with lessons learned from the mergeclasses plugin and re-run it Change-Id: I9d622eb3d05fceaf8fa764c533c8fa5dfb4c7711 Reviewed-on: https://gerrit.libreoffice.org/20015 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'basic/source/sbx/sbxvar.cxx')
-rw-r--r--basic/source/sbx/sbxvar.cxx15
1 files changed, 1 insertions, 14 deletions
diff --git a/basic/source/sbx/sbxvar.cxx b/basic/source/sbx/sbxvar.cxx
index 548ce03642ac..2bbe5081044b 100644
--- a/basic/source/sbx/sbxvar.cxx
+++ b/basic/source/sbx/sbxvar.cxx
@@ -574,11 +574,6 @@ bool SbxVariable::LoadData( SvStream& rStrm, sal_uInt16 nVer )
pInfo = new SbxInfo;
pInfo->LoadData( rStrm, (sal_uInt16) cMark );
}
- // Load private data only, if it is a SbxVariable
- if( GetClass() == SbxCLASS_VARIABLE && !LoadPrivateData( rStrm, nVer ) )
- {
- return false;
- }
Broadcast( SBX_HINT_DATACHANGED );
nHash = MakeHashCode( maName );
SetModified( true );
@@ -625,15 +620,7 @@ bool SbxVariable::StoreData( SvStream& rStrm ) const
{
rStrm.WriteUChar( 0 );
}
- // Save private data only, if it is a SbxVariable
- if( GetClass() == SbxCLASS_VARIABLE )
- {
- return StorePrivateData( rStrm );
- }
- else
- {
- return true;
- }
+ return true;
}
// SbxInfo