Kaydet (Commit) fb978737 authored tarafından Jan-Marek Glogowski's avatar Jan-Marek Glogowski

SM constify SmElement

Change-Id: I6334a6c87cb548c434f0dae05e7cb2cc6e6fd66a
Reviewed-on: https://gerrit.libreoffice.org/72316
Tested-by: Jenkins
Reviewed-by: 's avatarJan-Marek Glogowski <glogow@fbihome.de>
üst efca409b
......@@ -34,6 +34,7 @@ class SmElement
std::unique_ptr<SmNode> mpNode;
OUString const maText;
OUString const maHelpText;
public:
Point mBoxLocation;
Size mBoxSize;
......@@ -41,21 +42,11 @@ public:
SmElement(std::unique_ptr<SmNode>&& pNode, const OUString& aText, const OUString& aHelpText);
virtual ~SmElement();
const std::unique_ptr<SmNode>& getNode();
const OUString& getText()
{
return maText;
}
const OUString& getHelpText()
{
return maHelpText;
}
virtual bool isSeparator()
{
return false;
}
const std::unique_ptr<SmNode>& getNode() const;
const OUString& getText() const { return maText; }
const OUString& getHelpText() const { return maHelpText; }
virtual bool isSeparator() const { return false; }
};
class SmElementSeparator : public SmElement
......@@ -63,10 +54,7 @@ class SmElementSeparator : public SmElement
public:
SmElementSeparator();
virtual bool isSeparator() override
{
return true;
}
bool isSeparator() const override { return true; }
};
class SmElementsControl : public Control
......
......@@ -48,10 +48,7 @@ SmElement::SmElement(std::unique_ptr<SmNode>&& pNode, const OUString& aText, con
SmElement::~SmElement()
{}
const std::unique_ptr<SmNode>& SmElement::getNode()
{
return mpNode;
}
const std::unique_ptr<SmNode>& SmElement::getNode() const { return mpNode; }
SmElementSeparator::SmElementSeparator() :
SmElement(std::unique_ptr<SmNode>(), OUString(), OUString())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment