@@ -82,7 +82,7 @@ HudClient::HudClient()
8282 m_results = new DeeListModel();
8383 m_clientQuery = hud_client_query_new("");
8484 m_toolBarModel = new HudToolBarModel(m_clientQuery);
85− m_currentActionParam = NULL;
85+ m_currentActionParam = nullptr;
8686 m_results->setModel(hud_client_query_get_results_model(m_clientQuery));
8787
8888 g_signal_connect(G_OBJECT(m_clientQuery), "voice-query-loading", G_CALLBACK(loadingCB), this);
@@ -151,13 +151,13 @@ void HudClient::executeParametrizedAction(const QVariant &values)
151151 updateParametrizedAction(values);
152152 hud_client_param_send_commit(m_currentActionParam);
153153 g_object_unref(m_currentActionParam);
154− m_currentActionParam = NULL;
154+ m_currentActionParam = nullptr;
155155 Q_EMIT commandExecuted();
156156}
157157
158158void HudClient::updateParametrizedAction(const QVariant &values)
159159{
160− if (m_currentActionParam != NULL) {
160+ if (m_currentActionParam != nullptr) {
161161 const QVariantMap map = values.value<QVariantMap>();
162162 GActionGroup *ag = hud_client_param_get_actions(m_currentActionParam);
163163
@@ -179,10 +179,10 @@ void HudClient::updateParametrizedAction(const QVariant &values)
179179
180180void HudClient::cancelParametrizedAction()
181181{
182− if (m_currentActionParam != NULL) {
182+ if (m_currentActionParam != nullptr) {
183183 hud_client_param_send_cancel(m_currentActionParam);
184184 g_object_unref(m_currentActionParam);
185− m_currentActionParam = NULL;
185+ m_currentActionParam = nullptr;
186186 }
187187}
188188
@@ -212,9 +212,9 @@ void HudClient::executeCommand(int index)
212212 GVariant *is_parametrized = dee_model_get_value(model, iter, 7);
213213 if (g_variant_get_boolean(is_parametrized)) {
214214 m_currentActionParam = hud_client_query_execute_param_command(m_clientQuery, command_key, /* timestamp */ 0);
215− if (m_currentActionParam != NULL) {
215+ if (m_currentActionParam != nullptr) {
216216 GMenuModel *menuModel = hud_client_param_get_model (m_currentActionParam);
217− if (menuModel == NULL) {
217+ if (menuModel == nullptr) {
218218 g_signal_connect(m_currentActionParam, HUD_CLIENT_PARAM_SIGNAL_MODEL_READY, G_CALLBACK(modelReadyCB), this);
219219 } else {
220220 modelReady(false);
@@ -244,9 +244,9 @@ void HudClient::modelReady(bool needDisconnect)
244244}
245245
246246static void addAttribute(QVariantMap &properties, GMenuModel *menuModel, int item, const char *attribute) {
247− GVariant *v = g_menu_model_get_item_attribute_value(menuModel, item, attribute, NULL);
247+ GVariant *v = g_menu_model_get_item_attribute_value(menuModel, item, attribute, nullptr);
248248
249− if (v == NULL)
249+ if (v == nullptr)
250250 return;
251251
252252 properties.insert(attribute, DeeListModel::VariantForData(v));
@@ -264,10 +264,10 @@ void HudClient::modelReallyReady(bool needDisconnect)
264264 for (int i = 0; i < g_menu_model_get_n_items(menuModel); i++) {
265265 GVariant *v = g_menu_model_get_item_attribute_value(menuModel, i, "parameter-type", G_VARIANT_TYPE_STRING);
266266
267− if (v == NULL)
267+ if (v == nullptr)
268268 continue;
269269
270− const QString type = QString::fromUtf8(g_variant_get_string(v, NULL));
270+ const QString type = QString::fromUtf8(g_variant_get_string(v, nullptr));
271271 if (type == "slider") {
272272 const char *sliderAttributes[] = { "label", "min", "max", "step", "value", "live", "action" };
273273 QVariantMap properties;
@@ -283,7 +283,7 @@ void HudClient::modelReallyReady(bool needDisconnect)
283283 DeeModel *model = hud_client_query_get_results_model(m_clientQuery);
284284 DeeModelIter *iter = dee_model_get_iter_at_row(model, m_currentActionIndex);
285285 GVariant *actionTextVariant = dee_model_get_value(model, iter, 1);
286− const QString actionText = QString::fromUtf8(g_variant_get_string(actionTextVariant, NULL));
286+ const QString actionText = QString::fromUtf8(g_variant_get_string(actionTextVariant, nullptr));
287287 g_variant_unref(actionTextVariant);
288288 Q_EMIT showParametrizedAction(actionText, QVariant::fromValue(items));
289289}