From: Ilya Lavrenov Date: Tue, 15 Oct 2013 09:12:36 +0000 (+0400) Subject: replaced to_string by cv::format X-Git-Tag: accepted/tizen/ivi/20140515.103456~1^2~402^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=741e0242b3c9aa519c64e70a26f3d6c867468139;p=profile%2Fivi%2Fopencv.git replaced to_string by cv::format --- diff --git a/modules/ocl/src/arithm.cpp b/modules/ocl/src/arithm.cpp index 5a3820e..037999c 100644 --- a/modules/ocl/src/arithm.cpp +++ b/modules/ocl/src/arithm.cpp @@ -1345,13 +1345,6 @@ static void bitwise_unary_run(const oclMat &src1, oclMat &dst, string kernelName enum { AND = 0, OR, XOR }; -static std::string to_string(int value) -{ - std::ostringstream stream; - stream << value; - return stream.str(); -} - static void bitwise_binary_run(const oclMat &src1, const oclMat &src2, const Scalar& src3, const oclMat &mask, oclMat &dst, int operationType) { @@ -1366,7 +1359,7 @@ static void bitwise_binary_run(const oclMat &src1, const oclMat &src2, const Sca std::string kernelName("arithm_bitwise_binary"); int vlen = std::min(8, src1.elemSize1() * src1.oclchannels()); - std::string vlenstr = vlen > 1 ? to_string(vlen) : ""; + std::string vlenstr = vlen > 1 ? format("%d", vlen) : ""; std::string buildOptions = format("-D Operation=%c -D vloadn=vload%s -D vstoren=vstore%s -D elemSize=%d -D vlen=%d" " -D ucharv=uchar%s", operationMap[operationType], vlenstr.c_str(), vlenstr.c_str(),