diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-04-05 15:16:47 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-04-06 09:21:58 +0000 |
commit | 0c82dff153d92150729815b919854a9a350aa031 (patch) | |
tree | 9bda3cba13d9534460b2fe7919b00009e8ffd425 /basic/source/basmgr | |
parent | 9458ce11084579b020650fecb1165052c16ee556 (diff) |
loplugin:singlevalfields
Change-Id: Ia681765aa1da5c80a3dbe91b7376af841a9c9ec1
Reviewed-on: https://gerrit.libreoffice.org/36145
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basic/source/basmgr')
-rw-r--r-- | basic/source/basmgr/basmgr.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/basic/source/basmgr/basmgr.cxx b/basic/source/basmgr/basmgr.cxx index 8e9e47025ca4..6aafbc0fa370 100644 --- a/basic/source/basmgr/basmgr.cxx +++ b/basic/source/basmgr/basmgr.cxx @@ -349,7 +349,8 @@ private: public: BasicLibInfo(); - bool& IsReference() { return bReference; } + bool IsReference() const { return bReference; } + void SetReference(bool b) { bReference = b; } bool IsExtern() const { return aStorageName != szImbedded; } @@ -436,7 +437,7 @@ BasicLibInfo* BasicLibInfo::Create( SotStorageStream& rSStream ) { bool bReferenz; rSStream.ReadCharAsBool( bReferenz ); - pInfo->IsReference() = bReferenz; + pInfo->SetReference(bReferenz); } rSStream.Seek( nEndPos ); @@ -1081,7 +1082,7 @@ StarBASIC* BasicManager::AddLib( SotStorage& rStorage, const OUString& rLibName, { pLibInfo->GetLib()->SetModified( false ); // Don't save in this case pLibInfo->SetRelStorageName( OUString() ); - pLibInfo->IsReference() = true; + pLibInfo->SetReference(true); } else { |