From 8a06b20ad69db48a8708332c0cdf3cddf181b5be Mon Sep 17 00:00:00 2001 From: Andrey Morozov Date: Tue, 4 Oct 2011 21:31:52 +0000 Subject: [PATCH] fixed compile for linux --- modules/contrib/src/inputoutput.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/contrib/src/inputoutput.cpp b/modules/contrib/src/inputoutput.cpp index 640180d59b..75c975bdb7 100644 --- a/modules/contrib/src/inputoutput.cpp +++ b/modules/contrib/src/inputoutput.cpp @@ -46,8 +46,8 @@ namespace cv #else DIR *dp; struct dirent *dirp; - if((dp = opendir(directoryName.c_str())) == NULL) - { + if((dp = opendir(path.c_str())) == NULL) + { return list; } @@ -129,4 +129,4 @@ namespace cv return list; } -} \ No newline at end of file +}