Skip to content

Commit 11c90ea

Browse files
committed
cvv: fix build
1 parent bdf51c3 commit 11c90ea

File tree

3 files changed

+5
-13
lines changed

3 files changed

+5
-13
lines changed

modules/cvv/include/opencv2/cvv/call_meta_data.hpp

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -58,18 +58,10 @@ struct CallMetaData
5858

5959
} // namespaces
6060

61-
#ifdef __GNUC__
62-
#define CVVISUAL_FUNCTION_NAME_MACRO __PRETTY_FUNCTION__
63-
#else
64-
#define CVVISUAL_FUNCTION_NAME_MACRO __func__
65-
#endif
66-
6761
/**
6862
* @brief Creates an instance of CallMetaData with the location of the macro as
6963
* value.
7064
*/
71-
#define CVVISUAL_LOCATION \
72-
::cvv::impl::CallMetaData(__FILE__, __LINE__, \
73-
CVVISUAL_FUNCTION_NAME_MACRO)
65+
#define CVVISUAL_LOCATION ::cvv::impl::CallMetaData(__FILE__, __LINE__, CV_Func)
7466

7567
#endif

modules/cvv/src/qtutil/filter/changed_pixels_widget.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,14 @@ void changedPixelImage(const cv::Mat& mat0, const cv::Mat& mat1, cv::Mat& out)
6767
template<int Depth, int Channels>
6868
void changedPixelImage(const cv::Mat& mat0, const cv::Mat& mat1, cv::Mat& out)
6969
{
70-
using PixelInType=const cvv::qtutil::PixelType<Depth,Channels>;
70+
using PixelInType=cvv::qtutil::PixelType<Depth,Channels>;
7171
using PixelOutType=cvv::qtutil::DepthType<CV_8U>;
7272

7373

7474
cv::Mat result=cv::Mat::zeros(mat0.rows, mat0.cols,CV_8U);
7575
bool same;
76-
PixelInType* in0;
77-
PixelInType* in1;
76+
const PixelInType* in0;
77+
const PixelInType* in1;
7878
for(int i=0;i<result.rows;i++)
7979
{
8080
for(int j=0;j<result.cols;j++)

modules/cvv/test/test_location.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ TEST(LocationTest, FileLineFunction)
1212
auto locationMacroResult = CVVISUAL_LOCATION;
1313
size_t line = __LINE__ - 1;
1414
auto file = __FILE__;
15-
auto fun = CVVISUAL_FUNCTION_NAME_MACRO;
15+
auto fun = CV_Func;
1616
EXPECT_EQ(locationMacroResult.isKnown, true);
1717
EXPECT_EQ(locationMacroResult.file, file);
1818
EXPECT_EQ(locationMacroResult.line, line);

0 commit comments

Comments
 (0)