summaryrefslogtreecommitdiff
path: root/libs/ardour/file_source.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2010-06-24 18:04:38 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2010-06-24 18:04:38 +0000
commitde24d4f8b11b959a5155051a9f4a7b456b4ab465 (patch)
tree85acac135bc98d73e392a6ac6cc21953cf1b3e58 /libs/ardour/file_source.cc
parente72d710734f6371cb2653ad67c862d941e5cc173 (diff)
add and use Source::empty() since it can be done more efficiently than length(pos) == 0
git-svn-id: svn://localhost/ardour2/branches/3.0@7300 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/file_source.cc')
-rw-r--r--libs/ardour/file_source.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/file_source.cc b/libs/ardour/file_source.cc
index c00e3ddbc3..fd66a7a167 100644
--- a/libs/ardour/file_source.cc
+++ b/libs/ardour/file_source.cc
@@ -82,7 +82,7 @@ FileSource::removable () const
{
return (_flags & Removable)
&& ((_flags & RemoveAtDestroy) ||
- ((_flags & RemovableIfEmpty) && length(timeline_position()) == 0));
+ ((_flags & RemovableIfEmpty) && empty() == 0));
}
int