Use single namespace statement

This commit is contained in:
kannibalox
2024-10-29 15:01:09 -04:00
committed by Jari Sundell
parent dd45684584
commit 7f4c5df5ee
2 changed files with 4 additions and 10 deletions
+2 -5
View File
@@ -133,9 +133,7 @@ static const unsigned char TIXML_UTF_LEAD_0 = 0xefU;
static const unsigned char TIXML_UTF_LEAD_1 = 0xbbU;
static const unsigned char TIXML_UTF_LEAD_2 = 0xbfU;
namespace rpc // rtorrent-specific namespace
{
namespace tinyxml2
namespace rpc::tinyxml2 // rpc is a rtorrent-specific namespace
{
struct Entity {
@@ -3029,6 +3027,5 @@ bool XMLPrinter::Visit( const XMLUnknown& unknown )
return true;
}
} // namespace tinyxml2
} // namespace rpc
} // namespace rpc::tinyxml2
#endif
+2 -5
View File
@@ -113,9 +113,7 @@ static const int TIXML2_PATCH_VERSION = 0;
// so there needs to be a limit in place.
static const int TINYXML2_MAX_ELEMENT_DEPTH = 500;
namespace rpc // rtorrent-specific namespace
{
namespace tinyxml2
namespace rpc::tinyxml2 // rpc is a rtorrent-specific namespace
{
class XMLDocument;
class XMLElement;
@@ -2378,8 +2376,7 @@ private:
};
} // namespace tinyxml2
} // namespace rpc
} // namespace rpc::tinyxml2
#if defined(_MSC_VER)
# pragma warning(pop)