Commits

Ivan Andrianov  committed 80129c7

TagBlock refactoring.

  • Participants
  • Parent commits 004552a

Comments (0)

Files changed (2)

File src/codecs/tagblock.cpp

     setYear(0);
 }
 
-TagBlock::TagBlock(const QString & artistName, const QString & albumName,
-        const QString & trackName, uint trackNumber, uint year) :
+TagBlock::TagBlock(QString artistName, QString albumName, QString trackName,
+        uint trackNumber, uint year) :
         d(new Data())
 {
     setArtistName(artistName);
             && d->trackName.isEmpty() && d->trackNumber == 0 && d->year == 0;
 }
 
-void TagBlock::setArtistName(const QString & artistName)
+void TagBlock::setArtistName(QString artistName)
 {
     d->artistName = artistName;
 }
 
-void TagBlock::setAlbumName(const QString & albumName)
+void TagBlock::setAlbumName(QString albumName)
 {
     d->albumName = albumName;
 }
 
-void TagBlock::setTrackName(const QString & trackName)
+void TagBlock::setTrackName(QString trackName)
 {
     d->trackName = trackName;
 }

File src/codecs/tagblock.h

     /**
      * Construct a tag block with given tags.
      */
-    TagBlock(const QString & artistName, const QString & albumName,
-            const QString & trackName, uint trackNumber, uint year);
+    TagBlock(QString artistName, QString albumName, QString trackName,
+            uint trackNumber, uint year);
 
     /**
      * Copy a tag block.
     /**
      * Set artist name in the tag block.
      */
-    void setArtistName(const QString & artistName);
+    void setArtistName(QString artistName);
 
     /**
      * Set album name in the tag block.
      */
-    void setAlbumName(const QString & albumName);
+    void setAlbumName(QString albumName);
 
     /**
      * Set year in the tag block.
     /**
      * Set track name in the tag block.
      */
-    void setTrackName(const QString & trackName);
+    void setTrackName(QString trackName);
 
     /**
      * Set track number in the tag block.