]> granicus.if.org Git - taglib/commitdiff
Add overloads here so that the return type is in fact StringList.
authorScott Wheeler <wheeler@kde.org>
Fri, 6 Aug 2004 21:51:32 +0000 (21:51 +0000)
committerScott Wheeler <wheeler@kde.org>
Fri, 6 Aug 2004 21:51:32 +0000 (21:51 +0000)
git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@336601 283d02a7-25f6-0310-bc7c-ecb5cbfe19da

toolkit/tstringlist.cpp
toolkit/tstringlist.h

index 7f6574595b4ea9435e6d0ea88fa2ef72c85834d4..f03684f8a5f9b88f6741b984bfceb67bc5b324a1 100644 (file)
@@ -87,6 +87,18 @@ String StringList::toString(const String &separator) const
   return s;
 }
 
+StringList &StringList::append(const String &s)
+{
+  List<String>::append(s);
+  return *this;
+}
+
+StringList &StringList::append(const StringList &l)
+{
+  List<String>::append(l);
+  return *this;
+}
+
 ////////////////////////////////////////////////////////////////////////////////
 // related functions
 ////////////////////////////////////////////////////////////////////////////////
index 7011c86bfc5f7915262d4f641aa9ffa1dfcd6f15..33dec4b710f1684d6b8012fd0ec2ad0ef89a102e 100644 (file)
@@ -67,6 +67,18 @@ namespace TagLib {
      */
     String toString(const String &separator = " ") const;
 
+    /*!
+     * Appends \a s to the end of the list and returns a reference to the
+     * list.
+     */
+    StringList &append(const String &s);
+
+    /*!
+     * Appends all of the values in \a l to the end of the list and returns a
+     * reference to the list.
+     */
+    StringList &append(const StringList &l);
+
     /*!
      * Splits the String \a s into several strings at \a pattern.  This will not include
      * the pattern in the returned strings.