{
m_sUserSelFilterPath = filterPath;
if (filterPath[filterPath.length() - 1] != '\\')
- m_sUserSelFilterPath += L"\\";
+ m_sUserSelFilterPath += _T("\\");
}
/**
String strFileName = szFileName;
strFileName = string_makelower(strFileName);
if (strFileName[0] != '\\')
- strFileName = L"\\" + strFileName;
+ strFileName = _T("\\") + strFileName;
// append a point if there is no extension
if (strFileName.find('.') == -1)
- strFileName = strFileName + L".";
+ strFileName = strFileName + _T(".");
char * name_utf = UCS2UTF8_ConvertToUtf8(strFileName.c_str());
bool match = m_pMaskFilter->Match(name_utf);
m_fileFilterMgr->DeleteAllFilters();
// Program application directory
- m_sGlobalFilterPath = GetModulePath() + L"\\Filters";
- String pattern(L"*");
+ m_sGlobalFilterPath = GetModulePath() + _T("\\Filters");
+ String pattern(_T("*"));
pattern += FileFilterExt;
LoadFileFilterDirPattern(m_sGlobalFilterPath.c_str(), pattern.c_str());
LoadFileFilterDirPattern(m_sUserSelFilterPath.c_str(), pattern.c_str());
// Invoke unpacking plugins
if (!Unpack(plugCtxt->filepathUnpacked1, filteredFilenames.c_str(), plugCtxt->infoUnpacker))
{
- errStr = L"Unpack Error Side 1";
+ errStr = _T("Unpack Error Side 1");
return false;
}
if (!Unpack(plugCtxt->filepathUnpacked2, filteredFilenames.c_str(), plugCtxt->infoUnpacker))
{
- errStr = L"Unpack Error Side 2";
+ errStr = _T("Unpack Error Side 2");
return false;
}
if (!m_diffFileData.OpenFiles(plugCtxt->filepathTransformed1.c_str(),
plugCtxt->filepathTransformed2.c_str()))
{
- errStr = L"OpenFiles Error (before tranform)";
+ errStr = _T("OpenFiles Error (before tranform)");
return false;
}
plugCtxt->filepathUnpacked1, plugCtxt->filepathTransformed1,
filteredFilenames.c_str(), plugCtxt->infoPrediffer))
{
- errStr = L"Transform Error Side 1";
+ errStr = _T("Transform Error Side 1");
return false;
}
plugCtxt->filepathUnpacked2, plugCtxt->filepathTransformed2,
filteredFilenames.c_str(), plugCtxt->infoPrediffer))
{
- errStr = L"Transform Error Side 2";
+ errStr = _T("Transform Error Side 2");
return false;
}
if (!m_diffFileData.OpenFiles(plugCtxt->filepathTransformed1.c_str(),
plugCtxt->filepathTransformed2.c_str()))
{
- errStr = L"OpenFiles Error (after tranform)";
+ errStr = _T("OpenFiles Error (after tranform)");
return false;
}
}
if (!m_diffFileData.OpenFiles(plugCtxt.origFileName1.c_str(),
plugCtxt.origFileName2.c_str()))
{
- di.errorDesc = L"Error opening compared files";
+ di.errorDesc = _T("Error opening compared files");
return false;
}
}
m_ntrivialdiffs = CDiffContext::DIFFS_UNKNOWN;
}
if (DIFFCODE::isResultError(code))
- di.errorDesc = L"DiffUtils Error";
+ di.errorDesc = _T("DiffUtils Error");
}
else if (nCompMethod == CMP_QUICK_CONTENT)
{
{
// Print error since we should have handled by date compare earlier
_RPTF0(_CRT_ERROR, "Invalid compare type, DiffFileData can't handle it");
- di.errorDesc = L"Bad compare type";
+ di.errorDesc = _T("Bad compare type");
}
m_diffFileData.Reset();