diff options
author | Albert Astals Cid <aacid@kde.org> | 2019-08-24 02:01:53 +0200 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2019-08-24 19:27:09 +0200 |
commit | 335cb47a0e369fd6cf7af594801c2bcf5d74675a (patch) | |
tree | 89d262a83b1943cbcf6f5d8ee6e34e8b841ec642 /goo | |
parent | a2f2f3b91fb007b0c17090d369179e7605c9a4b7 (diff) |
GfxDeviceNColorSpace: Port to std::vector<std::string>
I was tired of having two constructors for GfxDeviceNColorSpace, both
taking GooString ** but one copying those strings and the other keeping
them for itself.
Moved to std::vector<std::string> without much fallout in the rest of
the code
Diffstat (limited to 'goo')
-rw-r--r-- | goo/GooString.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/goo/GooString.h b/goo/GooString.h index 74e4f77f..38950aef 100644 --- a/goo/GooString.h +++ b/goo/GooString.h @@ -17,7 +17,7 @@ // // Copyright (C) 2006 Kristian Høgsberg <krh@redhat.com> // Copyright (C) 2006 Krzysztof Kowalczyk <kkowalczyk@gmail.com> -// Copyright (C) 2008-2010, 2012, 2014, 2017, 2018 Albert Astals Cid <aacid@kde.org> +// Copyright (C) 2008-2010, 2012, 2014, 2017-2019 Albert Astals Cid <aacid@kde.org> // Copyright (C) 2012-2014 Fabio D'Urso <fabiodurso@hotmail.it> // Copyright (C) 2013 Jason Crain <jason@aquaticape.us> // Copyright (C) 2015, 2018 Adam Reichold <adam.reichold@t-online.de> @@ -164,6 +164,7 @@ public: // Compare two strings: -1:< 0:= +1:> int cmp(const GooString *str) const { return compare(*str); } + int cmp(const std::string &str) const { return compare(str); } int cmpN(GooString *str, int n) const { return compare(0, n, *str); } int cmp(const char *sA) const { return compare(sA); } int cmpN(const char *sA, int n) const { return compare(0, n, sA); } |