summaryrefslogtreecommitdiff
path: root/libs/ardour/panner.cc
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-11-01 17:25:38 +0000
committerDavid Robillard <d@drobilla.net>2009-11-01 17:25:38 +0000
commitb63a9fd4ca4814a3eb642b6dceef0e507e1cdee3 (patch)
treeec55cf1d629141f4388451fc8c194e494bff4fe9 /libs/ardour/panner.cc
parent6bb54878523e4a9cbf9aa886758fa584d1a9bd0a (diff)
Use shared_ptr::unique() instead of shared_ptr::use_count() == 1.
use_count() can be slow (not constant time) depending on underlying implementation. Similar situation to std::list::size() == 0 an std::list::empty(), the former does a big traversal/computation only to check if the very first step went. I think the current boost implementation is just a reference count anyway, but hey. In theory. git-svn-id: svn://localhost/ardour2/branches/3.0@5996 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/panner.cc')
0 files changed, 0 insertions, 0 deletions