From 4208387c4a6b7ecf43d756a8bba96b9cfc5227b9 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Fri, 10 Feb 2017 11:24:21 -0500 Subject: Renamed object validity checks The bool conversion operator was unfortunately Very Confusing so I've just renamed the methods to isValid. --- lib/word.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/word.cpp') diff --git a/lib/word.cpp b/lib/word.cpp index 4dea569..e4de187 100644 --- a/lib/word.cpp +++ b/lib/word.cpp @@ -74,7 +74,7 @@ namespace verbly { throw std::domain_error("Bad access to uninitialized word"); } - if (!notion_) + if (!notion_.isValid()) { notion_ = db_->notions(notion::id == notionId_).first(); } -- cgit 1.4.1