Skip to content

Commit

Permalink
Fixed warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
carlou33 committed Sep 9, 2016
1 parent 1767b59 commit 0a03b30
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/SaveManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ void SaveManager::save(const QString savepath, Server* manager) {
int count = settings.value("General/trackCount").toInt();

for(int i = 0; i < count; ++ i) {
settings.setValue(QString("Track%1/volume").arg(i), manager->player->getTrack(i)->getVolume());
settings.setValue(QString("Track%1/pan").arg(i), manager->player->getTrack(i)->getPan());
settings.setValue(QString("Track%1/volume").arg(i), manager->m_player->getTrack(i)->getVolume());
settings.setValue(QString("Track%1/pan").arg(i), manager->m_player->getTrack(i)->getPan());
}

settings.sync();
Expand Down
4 changes: 2 additions & 2 deletions src/Track.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ Track::Track():
{}

Track::Track(const TrackData& data, Parameters<double> conf, QSettings* opt, int id):
m_id(id), m_file(data.file), m_name(data.name), m_options(opt),
m_soloState(false), m_activatedState(false)
m_id(id), m_file(data.file), m_name(data.name),
m_soloState(false), m_activatedState(false), m_options(opt)
{
m_volumePtr = std::make_shared<Amplify<double>>(conf);
m_panPtr = std::make_shared<Pan<double>>(conf);
Expand Down
1 change: 1 addition & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ struct QuitStruct{
}

static void exitApp(int sig){
qDebug() << "Exit with signal " << sig;
QCoreApplication::exit(0);
}
};
Expand Down

0 comments on commit 0a03b30

Please sign in to comment.