mirror of
https://github.com/jezhiggins/arabica
synced 2024-12-26 21:58:39 +01:00
more warnings fixed
This commit is contained in:
parent
708afa0ebd
commit
7f8d20b46f
8 changed files with 16 additions and 14 deletions
|
@ -43,7 +43,7 @@ void generate_pyx(Arabica::DOM::Element<std::string> element)
|
|||
if(element.hasAttributes())
|
||||
{
|
||||
Arabica::DOM::NamedNodeMap<std::string> attrs = element.getAttributes();
|
||||
for(int a = 0; a != attrs.getLength(); ++a)
|
||||
for(size_t a = 0; a != attrs.getLength(); ++a)
|
||||
{
|
||||
Arabica::DOM::Node<std::string> attr = attrs.item(a);
|
||||
std::cout << 'A' << attr.getNodeName()
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
#ifdef _MSC_VER
|
||||
#pragma warning(disable: 4250)
|
||||
#endif
|
||||
|
||||
#include <iostream>
|
||||
#include <SAX/filter/Writer.hpp>
|
||||
|
|
|
@ -462,7 +462,7 @@ class DocumentImpl : public DOM::Document_impl<stringT, string_adaptorT>,
|
|||
idNodes_.erase(n);
|
||||
} // removeElementId
|
||||
|
||||
stringT const* const stringPool(const stringT& str) const
|
||||
stringT const* stringPool(const stringT& str) const
|
||||
{
|
||||
typename std::list<stringT>::const_iterator i = std::find(stringPool_.begin(), stringPool_.end(), str);
|
||||
if(i != stringPool_.end())
|
||||
|
|
|
@ -32,7 +32,7 @@ class WhitespaceStripper : public SAX::XMLFilterImpl<string_type, string_adaptor
|
|||
XMLFilterT::characters(Arabica::text::normalize_whitespace<string_type, string_adaptor>(ch));
|
||||
} // characters
|
||||
|
||||
virtual void ignorableWhitespace(const string_type& ch)
|
||||
virtual void ignorableWhitespace(const string_type& /* ch */)
|
||||
{
|
||||
} // ignorableWhitespace
|
||||
}; // class WhitespaceStripper
|
||||
|
|
|
@ -86,7 +86,7 @@ public:
|
|||
bool forward() const { return walker_->forward(); }
|
||||
bool reverse() const { return !walker_->forward(); }
|
||||
const DOM::Node<string_type, string_adaptor>& operator*() const { return node_; }
|
||||
const DOM::Node<string_type, string_adaptor>* const operator->() const { return &node_; }
|
||||
const DOM::Node<string_type, string_adaptor>* operator->() const { return &node_; }
|
||||
AxisEnumerator& operator++() { advance(); return *this; }
|
||||
AxisEnumerator operator++(int) { AxisEnumerator copy(*this); advance(); return copy; }
|
||||
|
||||
|
@ -117,7 +117,7 @@ class AxisWalker
|
|||
{
|
||||
public:
|
||||
virtual ~AxisWalker() { }
|
||||
DOM::Node_impl<string_type, string_adaptor>* const get() const { return current_; }
|
||||
DOM::Node_impl<string_type, string_adaptor>* get() const { return current_; }
|
||||
virtual void advance() = 0;
|
||||
bool forward() { return forward_; }
|
||||
virtual AxisWalker<string_type, string_adaptor>* clone() const = 0;
|
||||
|
@ -362,7 +362,7 @@ public:
|
|||
virtual AxisWalker<string_type, string_adaptor>* clone() const { return new DescendantAxisWalker(*this); }
|
||||
|
||||
private:
|
||||
const RawNodeT nextDescendant()
|
||||
RawNodeT nextDescendant()
|
||||
{
|
||||
RawNodeT next = BaseT::get()->getFirstChild();
|
||||
if(next == 0)
|
||||
|
|
|
@ -169,7 +169,7 @@ public:
|
|||
LastFn(const std::vector<XPathExpression<string_type, string_adaptor> >& args) : NumericXPathFunction<string_type, string_adaptor>(0, 0, args) { }
|
||||
|
||||
protected:
|
||||
virtual double doEvaluate(const DOM::Node<string_type, string_adaptor>& context,
|
||||
virtual double doEvaluate(const DOM::Node<string_type, string_adaptor>& /* context */,
|
||||
const ExecutionContext<string_type, string_adaptor>& executionContext) const
|
||||
{
|
||||
return executionContext.last();
|
||||
|
@ -184,7 +184,7 @@ public:
|
|||
PositionFn(const std::vector<XPathExpression<string_type, string_adaptor> >& args) : NumericXPathFunction<string_type, string_adaptor>(0, 0, args) { }
|
||||
|
||||
protected:
|
||||
virtual double doEvaluate(const DOM::Node<string_type, string_adaptor>& context,
|
||||
virtual double doEvaluate(const DOM::Node<string_type, string_adaptor>& /* context */,
|
||||
const ExecutionContext<string_type, string_adaptor>& executionContext) const
|
||||
{
|
||||
return executionContext.position();
|
||||
|
@ -597,8 +597,8 @@ public:
|
|||
TrueFn(const std::vector<XPathExpression<string_type, string_adaptor> >& args) : BooleanXPathFunction<string_type, string_adaptor>(0, 0, args) { }
|
||||
|
||||
protected:
|
||||
virtual bool doEvaluate(const DOM::Node<string_type, string_adaptor>& context,
|
||||
const ExecutionContext<string_type, string_adaptor>& executionContext) const
|
||||
virtual bool doEvaluate(const DOM::Node<string_type, string_adaptor>& /* context */,
|
||||
const ExecutionContext<string_type, string_adaptor>& /* executionContext */) const
|
||||
{
|
||||
return true;
|
||||
} // doEvaluate
|
||||
|
@ -612,8 +612,8 @@ public:
|
|||
FalseFn(const std::vector<XPathExpression<string_type, string_adaptor> >& args) : BooleanXPathFunction<string_type, string_adaptor>(0, 0, args) { }
|
||||
|
||||
protected:
|
||||
virtual bool doEvaluate(const DOM::Node<string_type, string_adaptor>& context,
|
||||
const ExecutionContext<string_type, string_adaptor>& executionContext) const
|
||||
virtual bool doEvaluate(const DOM::Node<string_type, string_adaptor>& /* context */,
|
||||
const ExecutionContext<string_type, string_adaptor>& /* executionContext */) const
|
||||
{
|
||||
return false;
|
||||
} // evaluate
|
||||
|
|
|
@ -44,7 +44,7 @@ public:
|
|||
virtual XPathFunction<string_type, string_adaptor>*
|
||||
resolveFunction(const string_type& namespace_uri,
|
||||
const string_type& name,
|
||||
const std::vector<XPathExpression<string_type, string_adaptor> >& argExprs) const
|
||||
const std::vector<XPathExpression<string_type, string_adaptor> >& /* argExprs */) const
|
||||
{
|
||||
string_type error;
|
||||
if(!string_adaptor::empty(namespace_uri))
|
||||
|
|
|
@ -116,7 +116,7 @@ std::codecvt_base::result base64codecvt::do_in(std::mbstate_t& state,
|
|||
return (from_next == from_end) ? std::codecvt_base::ok : std::codecvt_base::partial;
|
||||
} // do_in
|
||||
|
||||
std::codecvt_base::result base64codecvt::do_unshift(std::mbstate_t& state,
|
||||
std::codecvt_base::result base64codecvt::do_unshift(std::mbstate_t& /* state */,
|
||||
char* to,
|
||||
char* to_limit,
|
||||
char*& to_next) const
|
||||
|
|
Loading…
Reference in a new issue