Skip to content

Commit 3ca2d23

Browse files
committed
init some vars with nullptr
1 parent 5c5abe5 commit 3ca2d23

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/frontend_manager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ QString FrontendManager::get_error_message() const {
4444

4545
void FrontendManager::set_error_message(const QString &message) {
4646
m_error_message = message;
47-
Q_EMIT error_message_changed(); // TODO: Replace with thing that actually works
47+
Q_EMIT error_message_changed();
4848
}
4949

5050
QStringList FrontendManager::get_hrir_wav_file_names() const {

src/pipewire_manager.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ class PipeWireManager : public QObject {
5656
Q_SIGNAL void error_occured(const QString &message);
5757

5858
private:
59-
struct pw_thread_loop *thread_loop;
60-
struct pw_context *context;
61-
struct pw_core *core;
62-
struct pw_registry *registry;
63-
struct pw_metadata *metadata;
59+
struct pw_thread_loop *thread_loop = nullptr;
60+
struct pw_context *context = nullptr;
61+
struct pw_core *core = nullptr;
62+
struct pw_registry *registry = nullptr;
63+
struct pw_metadata *metadata = nullptr;
6464
struct spa_hook registry_listener;
6565
struct spa_hook metadata_listener;
6666
struct spa_hook core_listener;

0 commit comments

Comments
 (0)