mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 21:05:43 +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
2 changed files with 6 additions and 3 deletions
|
@ -714,7 +714,7 @@ struct XMLNode : public XS_String
|
||||||
return super::find(x);
|
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);
|
const_iterator found = find(x);
|
||||||
|
|
||||||
|
@ -728,7 +728,7 @@ struct XMLNode : public XS_String
|
||||||
/// map of XML node attributes
|
/// map of XML node attributes
|
||||||
struct AttributeMap : public std::map<XS_String, XS_String>
|
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);
|
const_iterator found = find(x);
|
||||||
|
|
||||||
|
@ -848,7 +848,7 @@ struct XMLNode : public XS_String
|
||||||
}
|
}
|
||||||
|
|
||||||
/// read only access to an attribute
|
/// 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);
|
AttributeMap::const_iterator found = _attributes.find(attr_name);
|
||||||
|
|
||||||
|
|
|
@ -24,6 +24,9 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
#ifndef _WIN32
|
||||||
|
#include <unistd.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef O_BINARY
|
#ifndef O_BINARY
|
||||||
#define O_BINARY 0
|
#define O_BINARY 0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue