diff options
Diffstat (limited to 'basic')
-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 { |