Skip to content

Commit f80ba14

Browse files
committed
Set of build fixes for ## 3581, 3580, 3574.
1 parent 5b95c33 commit f80ba14

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

modules/cudaarithm/test/test_event.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ CUDA_TEST_P(AsyncEvent, Timing)
9191
const double elTimeMs = Event::elapsedTime(startEvent, stopEvent);
9292
ASSERT_GT(elTimeMs, 0);
9393
}
94-
catch (cv::Exception ex) {
94+
catch (const cv::Exception& ex) {
9595
failed = true;
9696
}
9797
ASSERT_EQ(failed, shouldFail.at(i));

modules/datasets/src/tinyxml2/tinyxml2.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ template <class T, int INIT>
212212
class DynArray
213213
{
214214
public:
215-
DynArray< T, INIT >() {
215+
DynArray() {
216216
_mem = _pool;
217217
_allocated = INIT;
218218
_size = 0;

modules/face/src/facemarkLBF.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1213,7 +1213,7 @@ Mat FacemarkLBFImpl::Regressor::supportVectorRegression(
12131213
std::vector<double> beta(l);
12141214
std::vector<double> QD(l);
12151215

1216-
double lambda[1], upper_bound[1];
1216+
double lambda[l], upper_bound[l];
12171217
lambda[0] = 0.5/C;
12181218
upper_bound[0] = HUGE_VAL;
12191219

modules/xphoto/src/oilpainting.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class ParallelOilPainting : public ParallelLoopBody
5858
int dynRatio;
5959

6060
public:
61-
ParallelOilPainting<Type>(Mat& img, Mat &d, Mat &iLuminance, int r,int k) :
61+
ParallelOilPainting(Mat& img, Mat &d, Mat &iLuminance, int r,int k) :
6262
imgSrc(img),
6363
dst(d),
6464
imgLuminance(iLuminance),

0 commit comments

Comments
 (0)