summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Robbings <tim.robbings@isode.com>2015-03-09 16:11:32 (GMT)
committerKevin Smith <kevin.smith@isode.com>2016-03-17 17:35:17 (GMT)
commitdaf513a6567100322d3c51733ea0c449ca6adb1b (patch)
tree1e782b7581c90b2e0ca79a36de5df3dcd6804462 /Swiften/Elements/FormPage.h
parent141b0cb28e2b830553cbb654499cce3a7a8a1907 (diff)
downloadswift-daf513a6567100322d3c51733ea0c449ca6adb1b.zip
swift-daf513a6567100322d3c51733ea0c449ca6adb1b.tar.bz2
Tidy XEP-0141 code
This change addresses some feedback the previous XEP-0141 commit (a39d650). Test-information: Ran the CPPUnit tests, these completed successfully. Change-Id: I2caf1eb1349f7527bd9af8ce8adfb194391253e4
Diffstat (limited to 'Swiften/Elements/FormPage.h')
-rw-r--r--Swiften/Elements/FormPage.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/Swiften/Elements/FormPage.h b/Swiften/Elements/FormPage.h
index e5ecda2..0e66549 100644
--- a/Swiften/Elements/FormPage.h
+++ b/Swiften/Elements/FormPage.h
@@ -23,20 +23,18 @@ namespace Swift {
~FormPage();
void setLabel(const std::string& label);
const std::string& getLabel() const;
- const std::string& getXMLNS() const;
- void addChildSection(boost::shared_ptr<FormSection>& section);
+ void addChildSection(boost::shared_ptr<FormSection> section);
const std::vector<boost::shared_ptr<FormSection> >& getChildSections() const;
- void addTextElement(boost::shared_ptr<FormText>& textElement);
+ void addTextElement(boost::shared_ptr<FormText> textElement);
const std::vector<boost::shared_ptr<FormText> >& getTextElements() const;
- void addReportedRef(boost::shared_ptr<FormReportedRef>& reportedRef);
+ void addReportedRef(boost::shared_ptr<FormReportedRef> reportedRef);
const std::vector<boost::shared_ptr<FormReportedRef> >& getReportedRefs() const;
- void addField(boost::shared_ptr<FormField>& field);
+ void addField(boost::shared_ptr<FormField> field);
const std::vector<boost::shared_ptr<FormField> >& getFields() const;
void addFieldRef(std::string ref);
const std::vector<std::string> getFieldRefs() const;
private:
- std::string xmlns_;
std::string label_;
std::vector<boost::shared_ptr<FormText> > textElements_;
std::vector<boost::shared_ptr<FormSection> > childSections_;