]> granicus.if.org Git - taglib/commitdiff
Return a bool indicating if the save was successful as in File::save()
authorScott Wheeler <wheeler@kde.org>
Sat, 24 Jul 2004 17:30:54 +0000 (17:30 +0000)
committerScott Wheeler <wheeler@kde.org>
Sat, 24 Jul 2004 17:30:54 +0000 (17:30 +0000)
git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@332349 283d02a7-25f6-0310-bc7c-ecb5cbfe19da

fileref.cpp
fileref.h

index db9f7e1a2da22db96ed399320906d2e529d38713..4e72396f40e1159e61eb2d7d563351d25b480c11 100644 (file)
@@ -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
index 8376d2640a81ec56630b29606bff355175805668..14789e08d3501c027408d0423e90b725e871b01d 100644 (file)
--- 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.