aboutsummaryrefslogtreecommitdiffstats
path: root/src/StateFile.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-19 18:48:38 +0200
committerMax Kellermann <max@duempel.org>2013-10-19 18:48:38 +0200
commitff626ac76357940b2f0ac5cb243a68ac13df0f8a (patch)
tree493888a28950f75f5e254c0ded9dc9703ee83dc3 /src/StateFile.cxx
parent59f8144c50765189594d5932fc25869f9ea6e265 (diff)
downloadmpd-ff626ac76357940b2f0ac5cb243a68ac13df0f8a.tar.gz
mpd-ff626ac76357940b2f0ac5cb243a68ac13df0f8a.tar.xz
mpd-ff626ac76357940b2f0ac5cb243a68ac13df0f8a.zip
*: use references instead of pointers
Diffstat (limited to 'src/StateFile.cxx')
-rw-r--r--src/StateFile.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/StateFile.cxx b/src/StateFile.cxx
index 7a427a6a9..75cef2c99 100644
--- a/src/StateFile.cxx
+++ b/src/StateFile.cxx
@@ -48,8 +48,8 @@ StateFile::RememberVersions()
{
prev_volume_version = sw_volume_state_get_hash();
prev_output_version = audio_output_state_get_version();
- prev_playlist_version = playlist_state_get_hash(&partition.playlist,
- &partition.pc);
+ prev_playlist_version = playlist_state_get_hash(partition.playlist,
+ partition.pc);
}
bool
@@ -57,8 +57,8 @@ StateFile::IsModified() const
{
return prev_volume_version != sw_volume_state_get_hash() ||
prev_output_version != audio_output_state_get_version() ||
- prev_playlist_version != playlist_state_get_hash(&partition.playlist,
- &partition.pc);
+ prev_playlist_version != playlist_state_get_hash(partition.playlist,
+ partition.pc);
}
void
@@ -76,7 +76,7 @@ StateFile::Write()
save_sw_volume_state(fp);
audio_output_state_save(fp);
- playlist_state_save(fp, &partition.playlist, &partition.pc);
+ playlist_state_save(fp, partition.playlist, partition.pc);
fclose(fp);
@@ -101,8 +101,8 @@ StateFile::Read()
while ((line = file.ReadLine()) != NULL) {
success = read_sw_volume_state(line) ||
audio_output_state_read(line) ||
- playlist_state_restore(line, file, &partition.playlist,
- &partition.pc);
+ playlist_state_restore(line, file, partition.playlist,
+ partition.pc);
if (!success)
FormatError(state_file_domain,
"Unrecognized line in state file: %s",