Commits

shuerhaaken  committed 261815f

refactor

  • Participants
  • Parent commits e2d1553

Comments (0)

Files changed (3)

File libtaginfo/info.cc

  * 
  * Here's a very simple example with TagLib:
  * 
- *     TagInfo::Info * info = TagInfo::Info::create("song.mp3");
- *     info->load();
- *     TagLib::String artist = info->get_artist(); // artist == "Don van Vliet"
- *     delete info;
+ *     TagInfo::InfoRef ref("song.mp3");
+ *     ref->load();
+ *     TagLib::String artist = ref.info()->get_artist(); // artist == "Don van Vliet"
  *     
- *     TagInfo::Info * info = TagInfo::Info::create("song.ogg");
- *     info->load();
- *     TagLib::String artist = info->get_artist(); // artist == "Mambo Boyz"
- *     info->set_album("Mambo No. 1");
- *     info->save();
- *     delete info;
+ *     TagInfo::InfoRef ref2("song.ogg");
+ *     ref2.info()->set_album("Mambo No. 1");
+ *     ref2.save();
  * 
  * More examples can be found in the examples directory in the source code package.
  * 
 
 
 
-
-
-
-
-
 /*!
  * Create a Info from \a file. If \a format is given, libtaginfo will try to create 
  * an Info object for the desired \a format.

File libtaginfo/inforef.cc

 /*
- * Copyright (C) 2008-2013 J.Rios <anonbeat@gmail.com>
  * Copyright (C) 2013 Jörn Magens
  *
  * This library is free software; you can redistribute it and/or
  */
 
 
-#include <algorithm>
 #include "taginfo.h"
-//#include "taginfo_internal.h"
-
-//#include "taginfo_apetags.h"
-//#include "taginfo_asftags.h"
-//#include "taginfo_modtags.h"
-//#include "taginfo_mp4tags.h"
-//#include "taginfo_id3tags.h"
-//#include "taginfo_xiphtags.h"
-
 
 
 using namespace TagInfo;
 
 
-
-
 // InfoRef
 
 InfoRef::InfoRef(const String &filename) {

File tests/write_mp3/main.cc

         iref.info()->set_track_labels_list(trlabels);
         iref.save();
     }
-    iref;
     InfoRef iref2(target);
     if( !iref2.is_null() ) {
         if( iref2.load() ) {