summaryrefslogtreecommitdiff
path: root/src/core/model
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-01-18 18:52:48 +0100
committerAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-01-18 18:52:48 +0100
commitc7cd098d4b79b9a11a6e9a0cdd05d0371ff5e032 (patch)
tree4978b7714c7971d7f0bc65d21fcccabdc0489d06 /src/core/model
parent66382c62af1be515deff66d51dba7f27e5fe4937 (diff)
Using str.empty()
Diffstat (limited to 'src/core/model')
-rw-r--r--src/core/model/Document.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/model/Document.cpp b/src/core/model/Document.cpp
index fc9ff8d..9db0425 100644
--- a/src/core/model/Document.cpp
+++ b/src/core/model/Document.cpp
@@ -299,7 +299,7 @@ bool StructuredEntity::doValidate(Logger &logger) const
return false;
}
// check name
- if (getName() != "") {
+ if (!getName().empty()) {
if (!validateName(logger)) {
return false;
}
@@ -341,7 +341,7 @@ bool AnnotationEntity::doValidate(Logger &logger) const
return false;
}
// check name
- if (getName() != "") {
+ if (!getName().empty()) {
if (!validateName(logger)) {
return false;
}