From 68a2ec3394635d1c6822f0a644209660e6241591 Mon Sep 17 00:00:00 2001 From: Anatoly Baksheev Date: Wed, 1 Jun 2011 15:42:11 +0000 Subject: [PATCH] compilation for macos --- samples/gpu/cascadeclassifier_nvidia_api.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/samples/gpu/cascadeclassifier_nvidia_api.cpp b/samples/gpu/cascadeclassifier_nvidia_api.cpp index 3550c41169..e08648bddb 100644 --- a/samples/gpu/cascadeclassifier_nvidia_api.cpp +++ b/samples/gpu/cascadeclassifier_nvidia_api.cpp @@ -59,14 +59,14 @@ void displayState(Mat &canvas, bool bHelp, bool bGpu, bool bLargestFace, bool bF if (bHelp) { - matPrint(canvas, 2, fontColorNV, ostringstream("Space - switch GPU / CPU")); - matPrint(canvas, 3, fontColorNV, ostringstream("M - switch OneFace / MultiFace")); - matPrint(canvas, 4, fontColorNV, ostringstream("F - toggle rectangles Filter")); - matPrint(canvas, 5, fontColorNV, ostringstream("H - toggle hotkeys help")); + matPrint(canvas, 2, fontColorNV, (ostringstream&)(ostringstream() << "Space - switch GPU / CPU")); + matPrint(canvas, 3, fontColorNV, (ostringstream&)(ostringstream() << "M - switch OneFace / MultiFace")); + matPrint(canvas, 4, fontColorNV, (ostringstream&)(ostringstream() << "F - toggle rectangles Filter")); + matPrint(canvas, 5, fontColorNV, (ostringstream&)(ostringstream() << "H - toggle hotkeys help")); } else { - matPrint(canvas, 2, fontColorNV, ostringstream("H - toggle hotkeys help")); + matPrint(canvas, 2, fontColorNV, (ostringstream&)(ostringstream() << "H - toggle hotkeys help")); } }