summaryrefslogtreecommitdiffstats
path: root/testfiles
diff options
context:
space:
mode:
authorMartin Owens <doctormo@gmail.com>2018-11-14 10:49:57 +0000
committerMartin Owens <doctormo@gmail.com>2018-11-14 10:49:57 +0000
commitd5b02f3b6e00a373d1e49c49cf07112b1da54e34 (patch)
tree20d3f5dc0265eb59b9cd0aa9a51d457266db11ed /testfiles
parentChange preference to allow backward compatibility (diff)
downloadinkscape-d5b02f3b6e00a373d1e49c49cf07112b1da54e34.tar.gz
inkscape-d5b02f3b6e00a373d1e49c49cf07112b1da54e34.zip
Move getStyles to styles and clean up on destruction.
Diffstat (limited to 'testfiles')
-rw-r--r--testfiles/src/style-elem-test.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/testfiles/src/style-elem-test.cpp b/testfiles/src/style-elem-test.cpp
index 443c547ac..1d2ceed2a 100644
--- a/testfiles/src/style-elem-test.cpp
+++ b/testfiles/src/style-elem-test.cpp
@@ -60,18 +60,14 @@ TEST_F(ObjectTest, StyleElems) {
SPStyleElem *one = dynamic_cast<SPStyleElem *>(doc->getObjectById("style01"));
ASSERT_TRUE(one != nullptr);
- std::vector<SPStyle *> styles = one->getStyles();
-
- for(auto style: styles) {
+ for(auto style: one->styles) {
EXPECT_EQ(style->fill.get_value(), Glib::ustring("#ff0000"));
}
SPStyleElem *two = dynamic_cast<SPStyleElem *>(doc->getObjectById("style02"));
ASSERT_TRUE(one != nullptr);
- std::vector<SPStyle *> styles_two = two->getStyles();
-
- for(auto style: styles_two) {
+ for(auto style: two->styles) {
EXPECT_EQ(style->fill.get_value(), Glib::ustring("#008000"));
}
}