diff options
author | George Hazan <ghazan@miranda.im> | 2021-02-13 14:55:15 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-02-13 14:55:15 +0300 |
commit | 2f031aa7f17352bc345765c6094a54fe29796818 (patch) | |
tree | 4242e84bbc188ec8cd20b80bb6bac1f32cf3a46c /plugins | |
parent | cc6110276ebe3eb1409f44fc67596581d28f33ef (diff) |
code cleaning
Diffstat (limited to 'plugins')
-rwxr-xr-x | plugins/Msg_Export/src/utils.cpp | 6 | ||||
-rwxr-xr-x | plugins/Msg_Export/src/utils.h | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/plugins/Msg_Export/src/utils.cpp b/plugins/Msg_Export/src/utils.cpp index 99e9a18df9..09ab84ef8d 100755 --- a/plugins/Msg_Export/src/utils.cpp +++ b/plugins/Msg_Export/src/utils.cpp @@ -643,7 +643,7 @@ const char *pSettings[] = LPGEN("About")
};
-static bool ExportDBEventInfo(MCONTACT hContact, HANDLE hFile, wstring sFilePath, DBEVENTINFO &dbei, bool bAppendOnly)
+static bool ExportDBEventInfo(MCONTACT hContact, HANDLE hFile, const wstring &sFilePath, DBEVENTINFO &dbei, bool bAppendOnly)
{
wstring sLocalUser;
wstring sRemoteUser;
@@ -929,7 +929,7 @@ static bool ExportDBEventInfo(MCONTACT hContact, HANDLE hFile, wstring sFilePath // Description : Called when an event is added to the DB
// Or from the Export All funktion
-HANDLE openCreateFile(wstring sFilePath)
+HANDLE openCreateFile(const wstring &sFilePath)
{
SetLastError(0);
@@ -980,7 +980,7 @@ int nExportEvent(WPARAM hContact, LPARAM hDbEvent) return 0;
}
-bool bExportEvent(MCONTACT hContact, MEVENT hDbEvent, HANDLE hFile, wstring sFilePath, bool bAppendOnly)
+bool bExportEvent(MCONTACT hContact, MEVENT hDbEvent, HANDLE hFile, const wstring &sFilePath, bool bAppendOnly)
{
DBEVENTINFO dbei = {};
int nSize = db_event_getBlobSize(hDbEvent);
diff --git a/plugins/Msg_Export/src/utils.h b/plugins/Msg_Export/src/utils.h index b976e6f5ef..d4f9e1e93b 100755 --- a/plugins/Msg_Export/src/utils.h +++ b/plugins/Msg_Export/src/utils.h @@ -47,8 +47,8 @@ void LogLastError(const wchar_t *pszError); void DisplayErrorDialog(const wchar_t *pszError, wstring &sFilePath, DBEVENTINFO *dbei);
bool bIsExportEnabled(MCONTACT hContact);
-HANDLE openCreateFile(wstring sFilePath);
-bool bExportEvent(MCONTACT hContact, MEVENT hDbEvent, HANDLE hFile, wstring sFilePath, bool bAppendOnly);
+HANDLE openCreateFile(const wstring &sFilePath);
+bool bExportEvent(MCONTACT hContact, MEVENT hDbEvent, HANDLE hFile, const wstring &sFilePath, bool bAppendOnly);
int nExportEvent(WPARAM wparam, LPARAM lparam);
int nContactDeleted(WPARAM wparam, LPARAM lparam);
@@ -62,11 +62,11 @@ void UpdateFileToColWidth(); bool bReadMirandaDirAndPath();
wstring GetFilePathFromUser(MCONTACT hContact);
-void ReplaceDefines(MCONTACT hContact, wstring & sTarget);
+void ReplaceDefines(MCONTACT hContact, wstring &sTarget);
void ReplaceTimeVariables(wstring &sRet);
bool bWriteIndentedToFile(HANDLE hFile, int nIndent, const wchar_t *pszSrc, bool bUtf8File);
bool bWriteNewLine(HANDLE hFile, DWORD dwIndent);
-bool bIsUtf8Header(BYTE * pucByteOrder);
+bool bIsUtf8Header(BYTE *pucByteOrder);
#endif
|