From 4b983679a56212aa20b886fed8c73de701904c6e Mon Sep 17 00:00:00 2001
From: Vladislav Vinogradov <vlad.vinogradov@itseez.com>
Date: Wed, 19 Jun 2013 10:09:19 +0400
Subject: [PATCH] fix gpuarithm module compilation (Bug #3103)

---
 modules/gpuarithm/src/arithm.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/modules/gpuarithm/src/arithm.cpp b/modules/gpuarithm/src/arithm.cpp
index 6045cf5ba..eb7d710e6 100644
--- a/modules/gpuarithm/src/arithm.cpp
+++ b/modules/gpuarithm/src/arithm.cpp
@@ -173,7 +173,7 @@ void cv::gpu::gemm(InputArray _src1, InputArray _src2, double alpha, InputArray
     (void) _dst;
     (void) flags;
     (void) stream;
-    CV_Error(:Error::StsNotImplemented, "The library was build without CUBLAS");
+    CV_Error(Error::StsNotImplemented, "The library was build without CUBLAS");
 #else
     // CUBLAS works with column-major matrices
 
@@ -624,10 +624,10 @@ namespace
 
 Ptr<Convolution> cv::gpu::createConvolution(Size user_block_size)
 {
-#ifndef HAVE_CUBLAS
+#ifndef HAVE_CUFFT
     (void) user_block_size;
-    CV_Error(cv::Error::StsNotImplemented, "The library was build without CUFFT");
-    return Ptr<BLAS>();
+    CV_Error(Error::StsNotImplemented, "The library was build without CUFFT");
+    return Ptr<Convolution>();
 #else
     return new ConvolutionImpl(user_block_size);
 #endif