summaryrefslogtreecommitdiff
path: root/plugins/Quotes/src/CreateFilePath.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Quotes/src/CreateFilePath.cpp')
-rw-r--r--plugins/Quotes/src/CreateFilePath.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/Quotes/src/CreateFilePath.cpp b/plugins/Quotes/src/CreateFilePath.cpp
index b2472f5978..5f1ea74ef7 100644
--- a/plugins/Quotes/src/CreateFilePath.cpp
+++ b/plugins/Quotes/src/CreateFilePath.cpp
@@ -4,10 +4,10 @@ namespace
{
TCHAR replace_invalid_symbol(TCHAR chr)
{
- TCHAR InvaliSymbols[] = {_T('\\'),_T('/'),_T(':'),_T('*'),_T('?'),_T('"'),_T('<'),_T('>'),_T('|')};
- for(int i = 0; i < sizeof(InvaliSymbols)/sizeof(InvaliSymbols[0]);++i)
+ TCHAR InvaliSymbols[] = { _T('\\'), _T('/'), _T(':'), _T('*'), _T('?'), _T('"'), _T('<'), _T('>'), _T('|') };
+ for (int i = 0; i < sizeof(InvaliSymbols) / sizeof(InvaliSymbols[0]); ++i)
{
- if(chr == InvaliSymbols[i])
+ if (chr == InvaliSymbols[i])
{
return _T('_');
}
@@ -18,17 +18,17 @@ namespace
void prepare_name(tstring& rsName)
{
- std::transform(rsName.begin(),rsName.end(),rsName.begin(),boost::bind(replace_invalid_symbol,_1));
+ std::transform(rsName.begin(), rsName.end(), rsName.begin(), boost::bind(replace_invalid_symbol, _1));
}
}
tstring CreateFilePath(const tstring& rsName)
{
TCHAR szPath[_MAX_PATH];
- ::GetModuleFileName(g_hInstance,szPath,_MAX_PATH);
+ ::GetModuleFileName(g_hInstance, szPath, _MAX_PATH);
- TCHAR* p = _tcsrchr(szPath,_T('\\'));
- if(p)
+ TCHAR* p = _tcsrchr(szPath, _T('\\'));
+ if (p)
{
*p = 0;
}