From 5b604f41be4d8faaa12f254682599788564edabb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Lalinsk=C3=BD?= Date: Sun, 4 Nov 2012 09:46:50 +0100 Subject: [PATCH] Add default value for addFramingBit to XiphComment::render() --- taglib/ogg/xiphcomment.cpp | 5 ----- taglib/ogg/xiphcomment.h | 7 +------ 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/taglib/ogg/xiphcomment.cpp b/taglib/ogg/xiphcomment.cpp index 675614b3..0f0af75c 100644 --- a/taglib/ogg/xiphcomment.cpp +++ b/taglib/ogg/xiphcomment.cpp @@ -275,11 +275,6 @@ bool Ogg::XiphComment::contains(const String &key) const return d->fieldListMap.contains(key) && !d->fieldListMap[key].isEmpty(); } -ByteVector Ogg::XiphComment::render() const -{ - return render(true); -} - ByteVector Ogg::XiphComment::render(bool addFramingBit) const { ByteVector data; diff --git a/taglib/ogg/xiphcomment.h b/taglib/ogg/xiphcomment.h index 54f3070b..476e9833 100644 --- a/taglib/ogg/xiphcomment.h +++ b/taglib/ogg/xiphcomment.h @@ -191,11 +191,6 @@ namespace TagLib { */ bool contains(const String &key) const; - /*! - * Renders the comment to a ByteVector suitable for inserting into a file. - */ - ByteVector render() const; // BIC: remove and merge with below - /*! * Renders the comment to a ByteVector suitable for inserting into a file. * @@ -203,7 +198,7 @@ namespace TagLib { * be appended. However some formats (notably FLAC) do not work with this * in place. */ - ByteVector render(bool addFramingBit) const; + ByteVector render(bool addFramingBit = true) const; protected: /*!