From 5e6a0b961d1fc2162c5a7498f10bbd1a477f1ece Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Fri, 27 May 2016 16:51:13 +0900 Subject: Use nullptr --- state.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'state.cpp') diff --git a/state.cpp b/state.cpp index ed57bea4..59a3b007 100644 --- a/state.cpp +++ b/state.cpp @@ -61,7 +61,7 @@ State* State::fromJson(const QJsonObject& obj) { Event* event = Event::fromJson(obj); if( !event ) - return 0; + return nullptr; State* state = new State(event); state->d->stateKey = obj.value("state_key").toString(); state->d->replacesState = obj.value("replaces_state").toString(); -- cgit v1.2.3