]> git.sesse.net Git - vlc/commitdiff
demux: dash: const correctness
authorFrancois Cartegnie <fcvlcdev@free.fr>
Wed, 7 Jan 2015 01:12:11 +0000 (02:12 +0100)
committerFrancois Cartegnie <fcvlcdev@free.fr>
Mon, 12 Jan 2015 19:21:57 +0000 (20:21 +0100)
modules/demux/dash/xml/Node.cpp
modules/demux/dash/xml/Node.h

index c2140cfdd1b943e026030f9a9360c7d56279a34d..d7e04312d063c4f152904de3fdf1b4a05e1617cd 100644 (file)
@@ -62,7 +62,7 @@ void                                Node::setName               (const std::stri
     this->name = name;
 }
 
-bool                                Node::hasAttribute        (const std::string& name)
+bool                                Node::hasAttribute        (const std::string& name) const
 {
     if(this->attributes.find(name) != this->attributes.end())
         return true;
index ebd3ff96252f663314d5419f8872638e1d50eeaf..b22bfbdd3ef36b154c7254819984052e691c46c8 100644 (file)
@@ -44,7 +44,7 @@ namespace dash
                 void                                addSubNode          (Node *node);
                 const std::string&                  getName             () const;
                 void                                setName             (const std::string& name);
-                bool                                hasAttribute        (const std::string& name);
+                bool                                hasAttribute        (const std::string& name) const;
                 void                                addAttribute        (const std::string& key, const std::string& value);
                 const std::string&                  getAttributeValue   (const std::string& key) const;
                 std::vector<std::string>            getAttributeKeys    () const;