aboutsummaryrefslogtreecommitdiffstats
path: root/src/pprint.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-10-15 19:34:01 +0000
committerDavid Robillard <d@drobilla.net>2009-10-15 19:34:01 +0000
commit6d4564794d2257ac9e9f1fb674914c5abaed3951 (patch)
treeca50b51e33e2d4e7737eb8e2da828daef6b41c6d /src/pprint.cpp
parentc139e62f1fa1341eaa9c6f7b7d8e54601721a329 (diff)
downloadresp-6d4564794d2257ac9e9f1fb674914c5abaed3951.tar.gz
resp-6d4564794d2257ac9e9f1fb674914c5abaed3951.tar.bz2
resp-6d4564794d2257ac9e9f1fb674914c5abaed3951.zip
Remove some use of ATuple::size().
git-svn-id: http://svn.drobilla.net/resp/tuplr@230 ad02d1e2-f140-0410-9f75-f8b11f17cedd
Diffstat (limited to 'src/pprint.cpp')
-rw-r--r--src/pprint.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pprint.cpp b/src/pprint.cpp
index 3f2a5b8..78b13f4 100644
--- a/src/pprint.cpp
+++ b/src/pprint.cpp
@@ -72,7 +72,7 @@ void
pprint_internal(ostream& out, const AST* ast, unsigned indent)
{
const ATuple* tup = ast->to<const ATuple*>();
- if (tup && tup->size() > 0) {
+ if (tup && !tup->empty()) {
ATuple::const_iterator i = tup->begin() + 1;
const string head = tup->head()->str();
const ASymbol* headSym = tup->head()->to<const ASymbol*>();