Changeset 576
- Timestamp:
- 03/30/09 15:15:19 (8 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/uploadr/MacUploadr.app/Contents/Resources/components/flGM.cpp
r532 r576 22 22 //#include <Windows.h> 23 23 const DWORD dwChunckSize = 64 * 1024; 24 25 24 extern "C" __declspec(dllimport) UINT ___lc_codepage_func(void); 26 25 … … 50 49 #include <sstream> 51 50 #include <string> 51 #include <cctype> // std::tolower 52 52 #include <sys/stat.h> 53 53 #include "nsCOMPtr.h" … … 675 675 676 676 // If this image is a TIFF, force the thumbnail to be a JPEG 677 if (thumb_s->rfind(".tif") + 6 > thumb_s->length()) { 678 thumb_s->append(".jpg"); 677 std::string thumbLowerCase(*thumb_s); 678 //thumbLowerCase.resize(thumbPath.length()); 679 std::transform(thumb_s->begin(), thumb_s->end(), thumbLowerCase.begin(), tolower); 680 if (thumbLowerCase.rfind(".tif") + 6 > thumbLowerCase.length() || 681 thumbLowerCase.rfind(".bmp") + 6 > thumbLowerCase.length()) { 682 thumb_s->append(".jpg"); 679 683 } 680 684 … … 1257 1261 return NS_OK; 1258 1262 } 1263 1264 /* void sleep (in long tick); */ 1265 //NS_IMETHODIMP flGM::Sleep(PRInt32 tick) 1266 //{ 1267 // return PR_Sleep(tick); 1268 //}