summaryrefslogtreecommitdiff
path: root/src/settings.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2016-06-04 09:53:11 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2016-06-04 09:53:11 +0200
commit570625b0a70b727445473fd8587d1ce459115d23 (patch)
tree4c62443026865094c7877afaf0f9f91904143451 /src/settings.h
parent93228b339271f883c2785c4abca5f246416f502e (diff)
Fix uninitialised variables.
Diffstat (limited to 'src/settings.h')
-rw-r--r--src/settings.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/settings.h b/src/settings.h
index 6b4e882..a1d5bd0 100644
--- a/src/settings.h
+++ b/src/settings.h
@@ -44,10 +44,10 @@ enum class LoadStatus : unsigned int
//! Engine settings
struct Settings
{
- Atomic<std::string> drumkit_file;
+ Atomic<std::string> drumkit_file{""};
Atomic<LoadStatus> drumkit_load_status{LoadStatus::Idle};
- Atomic<std::string> midimap_file;
+ Atomic<std::string> midimap_file{""};
Atomic<LoadStatus> midimap_load_status{LoadStatus::Idle};
Atomic<bool> enable_velocity_modifier{true};
@@ -61,9 +61,9 @@ struct Settings
Atomic<bool> enable_resampling{true};
- Atomic<std::size_t> number_of_files;
- Atomic<std::size_t> number_of_files_loaded;
- Atomic<std::string> current_file;
+ Atomic<std::size_t> number_of_files{0};
+ Atomic<std::size_t> number_of_files_loaded{0};
+ Atomic<std::string> current_file{""};
};
//! Settings getter class.