diff --git a/gui/csvreport.cpp b/gui/csvreport.cpp index 0a67b3a9c..505a3696b 100644 --- a/gui/csvreport.cpp +++ b/gui/csvreport.cpp @@ -1,6 +1,6 @@ /* * Cppcheck - A tool for static C/C++ code analysis - * Copyright (C) 2007-2009 Daniel Marjamäki and Cppcheck team. + * Copyright (C) 2007-2009 Daniel Marjamäki and Cppcheck team. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/filelister.cpp b/src/filelister.cpp index f311d51b2..1fdb75d72 100644 --- a/src/filelister.cpp +++ b/src/filelister.cpp @@ -202,16 +202,16 @@ static HANDLE MyFindFirstFile(std::string path, LPWIN32_FIND_DATA findData) static BOOL MyIsDirectory(std::string path) { -#ifdef __BORLANDC__ - struct ffblk ffblk; - int ret = findfirst(path.c_str(), &ffblk, FA_DIREC); - if (ret == 0) - findclose(&ffblk); - return !ret; -#else - // See http://msdn.microsoft.com/en-us/library/bb773621(VS.85).aspx - return PathIsDirectory(path.c_str()); -#endif +#ifdef __BORLANDC__ + struct ffblk ffblk; + int ret = findfirst(path.c_str(), &ffblk, FA_DIREC); + if (ret == 0) + findclose(&ffblk); + return !ret; +#else + // See http://msdn.microsoft.com/en-us/library/bb773621(VS.85).aspx + return PathIsDirectory(path.c_str()); +#endif } static HANDLE MyFindFirstFile(std::string path, LPWIN32_FIND_DATA findData)