|
@@ -3,7 +3,7 @@
|
|
|
* Company: Lynar Studios
|
|
|
* E-Mail: webmaster@lynarstudios.com
|
|
|
* Created: 2023-02-16
|
|
|
-* Changed: 2023-02-23
|
|
|
+* Changed: 2023-05-16
|
|
|
*
|
|
|
* */
|
|
|
|
|
@@ -30,7 +30,7 @@ SectionPairDocumentProvider::~SectionPairDocumentProvider() = default;
|
|
|
|
|
|
shared_ptr<SectionPairDocument> SectionPairDocumentProvider::createDocument()
|
|
|
{
|
|
|
- shared_ptr<SectionPairDocument> document = make_shared<SectionPairDocument>();
|
|
|
+ auto document = make_shared<SectionPairDocument>();
|
|
|
|
|
|
// general section
|
|
|
|
|
@@ -39,17 +39,17 @@ shared_ptr<SectionPairDocument> SectionPairDocumentProvider::createDocument()
|
|
|
|
|
|
// physical
|
|
|
|
|
|
- shared_ptr<SectionPairSection> physicalSection = make_shared<SectionPairSection>("physical");
|
|
|
+ auto physicalSection = make_shared<SectionPairSection>("physical");
|
|
|
|
|
|
- shared_ptr<SectionPairRow> eyeColor = make_shared<SectionPairRow>("eye-color", SectionPairRowEnumType::SECTION_PAIR_ROW_SINGLE_VALUE);
|
|
|
+ auto eyeColor = make_shared<SectionPairRow>("eye-color", SectionPairRowEnumType::SECTION_PAIR_ROW_SINGLE_VALUE);
|
|
|
dynamic_pointer_cast<SectionPairRowSingleValue>(eyeColor->getValue())->set("blue");
|
|
|
physicalSection->add(eyeColor);
|
|
|
|
|
|
- shared_ptr<SectionPairRow> hairColor = make_shared<SectionPairRow>("hair-color", SectionPairRowEnumType::SECTION_PAIR_ROW_SINGLE_VALUE);
|
|
|
+ auto hairColor = make_shared<SectionPairRow>("hair-color", SectionPairRowEnumType::SECTION_PAIR_ROW_SINGLE_VALUE);
|
|
|
dynamic_pointer_cast<SectionPairRowSingleValue>(hairColor->getValue())->set("red");
|
|
|
physicalSection->add(hairColor);
|
|
|
|
|
|
- shared_ptr<SectionPairRow> height = make_shared<SectionPairRow>("height", SectionPairRowEnumType::SECTION_PAIR_ROW_SINGLE_VALUE);
|
|
|
+ auto height = make_shared<SectionPairRow>("height", SectionPairRowEnumType::SECTION_PAIR_ROW_SINGLE_VALUE);
|
|
|
dynamic_pointer_cast<SectionPairRowSingleValue>(height->getValue())->set("167");
|
|
|
physicalSection->add(height);
|
|
|
|