Skip to content

Commit 44ceaa9

Browse files
committed
Merge pull request #2603 from idscan:issue-2590-hide-tinyxml-in-cv-workspace
2 parents edefe42 + cb681cd commit 44ceaa9

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

modules/datasets/src/or_pascal.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ namespace datasets
5757
{
5858

5959
using namespace std;
60-
using namespace tinyxml2;
60+
using namespace cv::tinyxml2;
6161

6262
class OR_pascalImp CV_FINAL : public OR_pascal
6363
{

modules/datasets/src/tinyxml2/tinyxml2.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ static const unsigned char TIXML_UTF_LEAD_2 = 0xbfU;
6161
} \
6262
}
6363

64+
namespace cv
65+
{
6466
namespace tinyxml2
6567
{
6668

@@ -2201,3 +2203,4 @@ bool XMLPrinter::Visit( const XMLUnknown& unknown )
22012203
}
22022204

22032205
} // namespace tinyxml2
2206+
} // namespace cv

modules/datasets/src/tinyxml2/tinyxml2.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ static const int TIXML2_MAJOR_VERSION = 2;
126126
static const int TIXML2_MINOR_VERSION = 1;
127127
static const int TIXML2_PATCH_VERSION = 0;
128128

129+
namespace cv
130+
{
129131
namespace tinyxml2
130132
{
131133
class XMLDocument;
@@ -2071,6 +2073,7 @@ class TINYXML2_LIB XMLPrinter : public XMLVisitor
20712073

20722074

20732075
} // tinyxml2
2076+
} // cv
20742077

20752078
#if defined(_MSC_VER)
20762079
# pragma warning(pop)

modules/datasets/src/tr_svt.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ namespace datasets
5757
{
5858

5959
using namespace std;
60-
using namespace tinyxml2;
60+
using namespace cv::tinyxml2;
6161

6262
class TR_svtImp CV_FINAL : public TR_svt
6363
{

0 commit comments

Comments
 (0)