X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fview%2Fviewitemowner.hpp;h=dcec370f3fcd18afabfceba48dbc49dbe9fd10a5;hb=eae3bbbbfd35aef309c186e278ff7ab2d90f362a;hp=d31df80ec7263caafe4b388a979849091c3fc719;hpb=f4e57597347e47a4ea58fbdc7b0a22e07f1c0ede;p=pulseview.git diff --git a/pv/view/viewitemowner.hpp b/pv/view/viewitemowner.hpp index d31df80e..dcec370f 100644 --- a/pv/view/viewitemowner.hpp +++ b/pv/view/viewitemowner.hpp @@ -14,8 +14,7 @@ * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * along with this program; if not, see . */ #ifndef PULSEVIEW_PV_VIEWS_TRACEVIEW_VIEWITEMOWNER_HPP @@ -26,6 +25,10 @@ #include "viewitemiterator.hpp" +using std::dynamic_pointer_cast; +using std::shared_ptr; +using std::vector; + namespace pv { class Session; @@ -39,7 +42,7 @@ class View; class ViewItemOwner { public: - typedef std::vector< std::shared_ptr > item_list; + typedef vector< shared_ptr > item_list; typedef ViewItemIterator iterator; typedef ViewItemIterator const_iterator; @@ -76,10 +79,10 @@ public: * Creates a list of descendant signals filtered by type. */ template - std::vector< std::shared_ptr > list_by_type() { - std::vector< std::shared_ptr > items; + vector< shared_ptr > list_by_type() { + vector< shared_ptr > items; for (const auto &r : *this) { - std::shared_ptr p = std::dynamic_pointer_cast(r); + shared_ptr p = dynamic_pointer_cast(r); if (p) items.push_back(p); }