compilation for macos
authorAnatoly Baksheev <no@email>
Wed, 1 Jun 2011 15:42:11 +0000 (15:42 +0000)
committerAnatoly Baksheev <no@email>
Wed, 1 Jun 2011 15:42:11 +0000 (15:42 +0000)
samples/gpu/cascadeclassifier_nvidia_api.cpp

index 3550c41..e08648b 100644 (file)
@@ -59,14 +59,14 @@ void displayState(Mat &canvas, bool bHelp, bool bGpu, bool bLargestFace, bool bF
 \r
     if (bHelp)\r
     {\r
-        matPrint(canvas, 2, fontColorNV, ostringstream("Space - switch GPU / CPU"));\r
-        matPrint(canvas, 3, fontColorNV, ostringstream("M - switch OneFace / MultiFace"));\r
-        matPrint(canvas, 4, fontColorNV, ostringstream("F - toggle rectangles Filter"));\r
-        matPrint(canvas, 5, fontColorNV, ostringstream("H - toggle hotkeys help"));\r
+        matPrint(canvas, 2, fontColorNV, (ostringstream&)(ostringstream() << "Space - switch GPU / CPU"));\r
+        matPrint(canvas, 3, fontColorNV, (ostringstream&)(ostringstream() << "M - switch OneFace / MultiFace"));\r
+        matPrint(canvas, 4, fontColorNV, (ostringstream&)(ostringstream() << "F - toggle rectangles Filter"));\r
+        matPrint(canvas, 5, fontColorNV, (ostringstream&)(ostringstream() << "H - toggle hotkeys help"));\r
     }\r
     else\r
     {\r
-        matPrint(canvas, 2, fontColorNV, ostringstream("H - toggle hotkeys help"));\r
+        matPrint(canvas, 2, fontColorNV, (ostringstream&)(ostringstream() << "H - toggle hotkeys help"));\r
     }\r
 }\r
 \r