From c87f208c47252b47b117db73cc28a053d5133ffd Mon Sep 17 00:00:00 2001 From: luigino Date: Thu, 21 Jun 2018 17:55:21 +0200 Subject: [PATCH] Add return value to non-void function template --- src/projectM-qt/nullable.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/projectM-qt/nullable.hpp b/src/projectM-qt/nullable.hpp index 88e4a37bc..e491a9798 100644 --- a/src/projectM-qt/nullable.hpp +++ b/src/projectM-qt/nullable.hpp @@ -31,6 +31,8 @@ class Nullable { Nullable & operator=(const Value & value) { m_value = value; m_hasValue = true; + static Nullable tmp = 0; + return tmp; } void nullify() {