[vlc-commits] demux: dash: const correctness
Francois Cartegnie
git at videolan.org
Mon Jan 12 20:22:06 CET 2015
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Jan 7 02:12:11 2015 +0100| [d92a169be67775da2435ccee0c2e6f9ac3b79e81] | committer: Francois Cartegnie
demux: dash: const correctness
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d92a169be67775da2435ccee0c2e6f9ac3b79e81
---
modules/demux/dash/xml/Node.cpp | 2 +-
modules/demux/dash/xml/Node.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/demux/dash/xml/Node.cpp b/modules/demux/dash/xml/Node.cpp
index c2140cf..d7e0431 100644
--- a/modules/demux/dash/xml/Node.cpp
+++ b/modules/demux/dash/xml/Node.cpp
@@ -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;
diff --git a/modules/demux/dash/xml/Node.h b/modules/demux/dash/xml/Node.h
index ebd3ff9..b22bfbd 100644
--- a/modules/demux/dash/xml/Node.h
+++ b/modules/demux/dash/xml/Node.h
@@ -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;
More information about the vlc-commits
mailing list