From d5b02f3b6e00a373d1e49c49cf07112b1da54e34 Mon Sep 17 00:00:00 2001 From: Martin Owens Date: Wed, 14 Nov 2018 05:49:57 -0500 Subject: Move getStyles to styles and clean up on destruction. --- testfiles/src/style-elem-test.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'testfiles/src') 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(doc->getObjectById("style01")); ASSERT_TRUE(one != nullptr); - std::vector 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(doc->getObjectById("style02")); ASSERT_TRUE(one != nullptr); - std::vector styles_two = two->getStyles(); - - for(auto style: styles_two) { + for(auto style: two->styles) { EXPECT_EQ(style->fill.get_value(), Glib::ustring("#008000")); } } -- cgit v1.2.3