mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 23:33:05 +04:00
Remove all using directives for STL namespace and members
Made all STL usages explicit to be able automatically find all usages of particular class or function.
This commit is contained in:
+2
-17
@@ -1,26 +1,13 @@
|
||||
|
||||
#include "precomp.hpp"
|
||||
#include <string>
|
||||
#include <time.h>
|
||||
|
||||
using namespace std;
|
||||
|
||||
#define pCvSeq CvSeq*
|
||||
#define pCvDTreeNode CvDTreeNode*
|
||||
|
||||
#define CV_CMP_FLOAT(a,b) ((a) < (b))
|
||||
static CV_IMPLEMENT_QSORT_EX( icvSortFloat, float, CV_CMP_FLOAT, float)
|
||||
|
||||
//===========================================================================
|
||||
static string ToString(int i)
|
||||
{
|
||||
stringstream tmp;
|
||||
tmp << i;
|
||||
|
||||
return tmp.str();
|
||||
}
|
||||
|
||||
|
||||
//===========================================================================
|
||||
//----------------------------- CvGBTreesParams -----------------------------
|
||||
//===========================================================================
|
||||
@@ -1143,8 +1130,7 @@ void CvGBTrees::write( CvFileStorage* fs, const char* name ) const
|
||||
|
||||
for ( int j=0; j < class_count; ++j )
|
||||
{
|
||||
s = "trees_";
|
||||
s += ToString(j);
|
||||
s = cv::format("trees_%d", j);
|
||||
cvStartWriteStruct( fs, s.c_str(), CV_NODE_SEQ );
|
||||
|
||||
cvStartReadSeq( weak[j], &reader );
|
||||
@@ -1197,8 +1183,7 @@ void CvGBTrees::read( CvFileStorage* fs, CvFileNode* node )
|
||||
|
||||
for (int j=0; j<class_count; ++j)
|
||||
{
|
||||
s = "trees_";
|
||||
s += ToString(j);
|
||||
s = cv::format("trees_%d", j);
|
||||
|
||||
trees_fnode = cvGetFileNodeByName( fs, node, s.c_str() );
|
||||
if( !trees_fnode || !CV_NODE_IS_SEQ(trees_fnode->tag) )
|
||||
|
||||
Reference in New Issue
Block a user