From d8fc67ac67e617494dabfa911df5f38e36c5eecb Mon Sep 17 00:00:00 2001 From: Scott Wheeler Date: Sat, 24 Jul 2004 17:30:54 +0000 Subject: [PATCH] Return a bool indicating if the save was successful as in File::save() git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@332349 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- fileref.cpp | 4 ++-- fileref.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fileref.cpp b/fileref.cpp index db9f7e1a..4e72396f 100644 --- a/fileref.cpp +++ b/fileref.cpp @@ -82,9 +82,9 @@ File *FileRef::file() const return d->file; } -void FileRef::save() +bool FileRef::save() { - d->file->save(); + return d->file->save(); } bool FileRef::isNull() const diff --git a/fileref.h b/fileref.h index 8376d264..14789e08 100644 --- a/fileref.h +++ b/fileref.h @@ -133,9 +133,9 @@ namespace TagLib { File *file() const; /*! - * Saves the file. + * Saves the file. Returns true on success. */ - void save(); + bool save(); /*! * Returns true if the file (and as such other pointers) are null. -- 2.40.0