mirror of
https://github.com/reactos/reactos.git
synced 2024-09-30 22:47:28 +00:00
fix some warnings (gcc 4.2 on Linux x64)
svn path=/trunk/; revision=25524
This commit is contained in:
parent
ff8132912c
commit
d5a1f83701
|
@ -714,7 +714,7 @@ struct XMLNode : public XS_String
|
|||
return super::find(x);
|
||||
}
|
||||
|
||||
XS_String get(const char* x, LPXSSTR def=XS_EMPTY_STR) const
|
||||
XS_String get(const char* x, LPCXSSTR def=XS_EMPTY_STR) const
|
||||
{
|
||||
const_iterator found = find(x);
|
||||
|
||||
|
@ -728,7 +728,7 @@ struct XMLNode : public XS_String
|
|||
/// map of XML node attributes
|
||||
struct AttributeMap : public std::map<XS_String, XS_String>
|
||||
{
|
||||
XS_String get(const char* x, LPXSSTR def=XS_EMPTY_STR) const
|
||||
XS_String get(const char* x, LPCXSSTR def=XS_EMPTY_STR) const
|
||||
{
|
||||
const_iterator found = find(x);
|
||||
|
||||
|
@ -848,7 +848,7 @@ struct XMLNode : public XS_String
|
|||
}
|
||||
|
||||
/// read only access to an attribute
|
||||
template<typename T> XS_String get(const T& attr_name, LPXSSTR def=XS_EMPTY_STR) const
|
||||
template<typename T> XS_String get(const T& attr_name, LPCXSSTR def=XS_EMPTY_STR) const
|
||||
{
|
||||
AttributeMap::const_iterator found = _attributes.find(attr_name);
|
||||
|
||||
|
|
|
@ -24,6 +24,9 @@
|
|||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <fcntl.h>
|
||||
#ifndef _WIN32
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#ifndef O_BINARY
|
||||
#define O_BINARY 0
|
||||
|
|
Loading…
Reference in a new issue