[Libreoffice-commits] .: basctl/source
August Sodora
augsod at kemper.freedesktop.org
Thu Dec 8 20:22:40 PST 2011
basctl/source/basicide/sbxitem.cxx | 25 -------------------------
basctl/source/inc/sbxitem.hxx | 17 ++++-------------
2 files changed, 4 insertions(+), 38 deletions(-)
New commits:
commit 3f5225ab63f7a1b1ebeb4dab375081ad7032872f
Author: August Sodora <augsod at gmail.com>
Date: Thu Dec 8 23:21:12 2011 -0500
Clean up SbxItem
diff --git a/basctl/source/basicide/sbxitem.cxx b/basctl/source/basicide/sbxitem.cxx
index e1837c6..b2d33ac 100644
--- a/basctl/source/basicide/sbxitem.cxx
+++ b/basctl/source/basicide/sbxitem.cxx
@@ -78,49 +78,24 @@ const ScriptDocument& SbxItem::GetDocument() const
return m_aDocument;
}
-void SbxItem::SetDocument(const ScriptDocument& rDocument)
-{
- m_aDocument = rDocument;
-}
-
const ::rtl::OUString& SbxItem::GetLibName() const
{
return m_aLibName;
}
-void SbxItem::SetLibName(const ::rtl::OUString& aLibName)
-{
- m_aLibName = aLibName;
-}
-
const ::rtl::OUString& SbxItem::GetName() const
{
return m_aName;
}
-void SbxItem::SetName(const ::rtl::OUString& aName)
-{
- m_aName = aName;
-}
-
const ::rtl::OUString& SbxItem::GetMethodName() const
{
return m_aMethodName;
}
-void SbxItem::SetMethodName(const ::rtl::OUString& aMethodName)
-{
- m_aMethodName = aMethodName;
-}
-
BasicIDEType SbxItem::GetType() const
{
return m_nType;
}
-void SbxItem::SetType(BasicIDEType nType)
-{
- m_nType = nType;
-}
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/basctl/source/inc/sbxitem.hxx b/basctl/source/inc/sbxitem.hxx
index 2f90535..4e0036b 100644
--- a/basctl/source/inc/sbxitem.hxx
+++ b/basctl/source/inc/sbxitem.hxx
@@ -43,10 +43,10 @@ enum BasicIDEType
class SbxItem : public SfxPoolItem
{
- ScriptDocument m_aDocument;
- ::rtl::OUString m_aLibName;
- ::rtl::OUString m_aName;
- ::rtl::OUString m_aMethodName;
+ const ScriptDocument m_aDocument;
+ const ::rtl::OUString m_aLibName;
+ const ::rtl::OUString m_aName;
+ const ::rtl::OUString m_aMethodName;
BasicIDEType m_nType;
public:
@@ -59,19 +59,10 @@ public:
virtual int operator==(const SfxPoolItem&) const;
const ScriptDocument& GetDocument() const;
- void SetDocument(const ScriptDocument& rDocument);
-
const ::rtl::OUString& GetLibName() const;
- void SetLibName(const ::rtl::OUString& aLibName);
-
const ::rtl::OUString& GetName() const;
- void SetName(const ::rtl::OUString& aName);
-
const ::rtl::OUString& GetMethodName() const;
- void SetMethodName(const ::rtl::OUString& aMethodName);
-
BasicIDEType GetType() const;
- void SetType(BasicIDEType nType);
};
#endif
More information about the Libreoffice-commits
mailing list