diff options
author | joerg <joerg> | 2013-01-17 16:04:49 +0000 |
---|---|---|
committer | joerg <joerg> | 2013-01-17 16:04:49 +0000 |
commit | 7ada7e67e77acfd55c7ea337bbcb6b2947e66a69 (patch) | |
tree | 9ca7652a490654c27b0913c7c2ea8a96d26ec0c1 /www/kdewebdev3/patches | |
parent | ac8a8e6d74a129f2f38b15c51997140feb75691b (diff) | |
download | pkgsrc-7ada7e67e77acfd55c7ea337bbcb6b2947e66a69.tar.gz |
Assume that changing a temporary object is not the intention here...
Diffstat (limited to 'www/kdewebdev3/patches')
-rw-r--r-- | www/kdewebdev3/patches/patch-quanta_parsers_tag.h | 13 | ||||
-rw-r--r-- | www/kdewebdev3/patches/patch-quanta_parts_kafka_kafkacommon.cpp | 26 |
2 files changed, 39 insertions, 0 deletions
diff --git a/www/kdewebdev3/patches/patch-quanta_parsers_tag.h b/www/kdewebdev3/patches/patch-quanta_parsers_tag.h new file mode 100644 index 00000000000..5e924a19997 --- /dev/null +++ b/www/kdewebdev3/patches/patch-quanta_parsers_tag.h @@ -0,0 +1,13 @@ +$NetBSD: patch-quanta_parsers_tag.h,v 1.1 2013/01/17 16:04:49 joerg Exp $ + +--- quanta/parsers/tag.h.orig 2005-09-10 08:22:52.000000000 +0000 ++++ quanta/parsers/tag.h +@@ -88,6 +88,8 @@ public: + void addAttribute(TagAttr attr) {attrs.append(attr);} + /** Get the attribute number index */ + TagAttr getAttribute(uint index) const {return attrs[index];} ++ /** Get the attribute number index */ ++ TagAttr &getAttributeWriteable(uint index) {return attrs[index];} + /** Remove the attribute number index */ + void deleteAttribute(uint index) {attrs.remove(attrs.at(index));} + /** Insert a new Attribute, even if it already exists. Prefer using editAttribute. diff --git a/www/kdewebdev3/patches/patch-quanta_parts_kafka_kafkacommon.cpp b/www/kdewebdev3/patches/patch-quanta_parts_kafka_kafkacommon.cpp new file mode 100644 index 00000000000..e639b3ff8d1 --- /dev/null +++ b/www/kdewebdev3/patches/patch-quanta_parts_kafka_kafkacommon.cpp @@ -0,0 +1,26 @@ +$NetBSD: patch-quanta_parts_kafka_kafkacommon.cpp,v 1.1 2013/01/17 16:04:49 joerg Exp $ + +--- quanta/parts/kafka/kafkacommon.cpp.orig 2013-01-17 13:00:59.000000000 +0000 ++++ quanta/parts/kafka/kafkacommon.cpp +@@ -742,15 +742,15 @@ void kafkaCommon::fitsNodesPosition(Node + { + if(node->tag->getAttribute(j).nameLine == SNbeginLine) + { +- node->tag->getAttribute(j).nameLine += lineMovement; +- node->tag->getAttribute(j).nameCol += colMovement; +- node->tag->getAttribute(j).valueLine += lineMovement; +- node->tag->getAttribute(j).valueCol += colMovement; ++ node->tag->getAttributeWriteable(j).nameLine += lineMovement; ++ node->tag->getAttributeWriteable(j).nameCol += colMovement; ++ node->tag->getAttributeWriteable(j).valueLine += lineMovement; ++ node->tag->getAttributeWriteable(j).valueCol += colMovement; + } + else + { +- node->tag->getAttribute(j).nameLine += lineMovement; +- node->tag->getAttribute(j).valueLine += lineMovement; ++ node->tag->getAttributeWriteable(j).nameLine += lineMovement; ++ node->tag->getAttributeWriteable(j).valueLine += lineMovement; + } + } + node = getNextNode(node, b); |