From 69aa74860a18517762167b5bbd832321299dfc76 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 12 Oct 2011 20:17:26 +0000 Subject: Fix kdewebdev FTBFS under oneiric Quanta lvalue gcc error patch provided by "/dev/ammo42" git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1258664 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- quanta/parsers/tag.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'quanta/parsers') diff --git a/quanta/parsers/tag.h b/quanta/parsers/tag.h index de7e0123..073e9568 100644 --- a/quanta/parsers/tag.h +++ b/quanta/parsers/tag.h @@ -88,6 +88,9 @@ public: void addAttribute(TagAttr attr) {attrs.append(attr);} /** Get the attribute number index */ TagAttr getAttribute(uint index) const {return attrs[index];} + /* /!\ KLUDGE WARNING /!\ */ + /** Get the attribute number index: returns a pointer */ + TagAttr* getAttribute_gcc46(uint index) {return (TagAttr*) &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. -- cgit v1.2.1