diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-02-10 11:24:21 -0500 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-02-10 11:24:21 -0500 |
commit | 4208387c4a6b7ecf43d756a8bba96b9cfc5227b9 (patch) | |
tree | 30dc35cbd305f0743ca03cae0509ff315d90a012 /lib/word.cpp | |
parent | f1f67e62cebb4144f0599196263cd93b41fa972e (diff) | |
download | verbly-4208387c4a6b7ecf43d756a8bba96b9cfc5227b9.tar.gz verbly-4208387c4a6b7ecf43d756a8bba96b9cfc5227b9.tar.bz2 verbly-4208387c4a6b7ecf43d756a8bba96b9cfc5227b9.zip |
Renamed object validity checks
The bool conversion operator was unfortunately Very Confusing so I've just renamed the methods to isValid.
Diffstat (limited to 'lib/word.cpp')
-rw-r--r-- | lib/word.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 { | |||
74 | throw std::domain_error("Bad access to uninitialized word"); | 74 | throw std::domain_error("Bad access to uninitialized word"); |
75 | } | 75 | } |
76 | 76 | ||
77 | if (!notion_) | 77 | if (!notion_.isValid()) |
78 | { | 78 | { |
79 | notion_ = db_->notions(notion::id == notionId_).first(); | 79 | notion_ = db_->notions(notion::id == notionId_).first(); |
80 | } | 80 | } |