From 50c2bd5cc24e3f5118af40db4a30dab2c75fd63e Mon Sep 17 00:00:00 2001 From: Martin Fuchs Date: Sun, 28 Mar 2004 21:04:00 +0000 Subject: [PATCH] avoid GCC complaining about: "ISO C++ says that `String XMLStorage::XMLNode::operator[](const char *) const' and `String & XMLStorage::XMLNode::operator[](const String &)' are ambiguous even though the worst conversion for the former is better than the worst conversion for the latter svn path=/trunk/; revision=8911 --- reactos/subsys/system/explorer/utility/xmlstorage.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/reactos/subsys/system/explorer/utility/xmlstorage.h b/reactos/subsys/system/explorer/utility/xmlstorage.h index 9ec09ef302a..1ce331c4d47 100644 --- a/reactos/subsys/system/explorer/utility/xmlstorage.h +++ b/reactos/subsys/system/explorer/utility/xmlstorage.h @@ -366,6 +366,7 @@ struct XMLNode : public String } #ifdef UNICODE +#ifndef __GNUC__ // avoid GCC complaining about: "ISO C++ says that `String XMLStorage::XMLNode::operator[](const char *) const' and `String & XMLStorage::XMLNode::operator[](const String &)' are ambiguous even though the worst conversion for the former is better than the worst conversion for the latter /// read only access to an attribute String operator[](const char* attr_name) const { @@ -376,6 +377,7 @@ struct XMLNode : public String else return TEXT(""); } +#endif /// convenient value access in children node String value(const char* name, const char* attr_name) const