diff options
author | George Hazan <george.hazan@gmail.com> | 2015-04-13 20:38:46 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-04-13 20:38:46 +0000 |
commit | a58d37d39c039e755e5b902d5556fe34338130bc (patch) | |
tree | 28fb91d7be99221ff8f5b4b704788258b773154d /plugins/TabSRMM/src/msgdlgutils.cpp | |
parent | cfba0c6c4d9a42a5384b61f109836783c0adc8a7 (diff) |
unused parameter removed
git-svn-id: http://svn.miranda-ng.org/main/trunk@12796 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/msgdlgutils.cpp')
-rw-r--r-- | plugins/TabSRMM/src/msgdlgutils.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/plugins/TabSRMM/src/msgdlgutils.cpp b/plugins/TabSRMM/src/msgdlgutils.cpp index 60723882b5..52e1eef1ad 100644 --- a/plugins/TabSRMM/src/msgdlgutils.cpp +++ b/plugins/TabSRMM/src/msgdlgutils.cpp @@ -644,9 +644,10 @@ int TSAPI CheckValidSmileyPack(const char *szProto, MCONTACT hContact) /////////////////////////////////////////////////////////////////////////////////////////
// return value MUST be mir_free()'d by caller.
-TCHAR* TSAPI QuoteText(const TCHAR *text, int charsPerLine, int removeExistingQuotes)
+TCHAR* TSAPI QuoteText(const TCHAR *text)
{
int outChar, lineChar;
+ int iCharsPerLine = M.GetDword("quoteLineLength", 64);
size_t bufSize = mir_wstrlen(text) + 23;
TCHAR *strout = (TCHAR*)mir_alloc(bufSize * sizeof(TCHAR));
@@ -658,17 +659,11 @@ TCHAR* TSAPI QuoteText(const TCHAR *text, int charsPerLine, int removeExistingQu strout = (TCHAR*)mir_realloc(strout, bufSize * sizeof(TCHAR));
}
if (justDoneLineBreak && text[inChar] != '\r' && text[inChar] != '\n') {
- if (removeExistingQuotes)
- if (text[inChar] == '>') {
- while (text[++inChar] != '\n');
- inChar++;
- continue;
- }
strout[outChar++] = '>';
strout[outChar++] = ' ';
lineChar = 2;
}
- if (lineChar == charsPerLine && text[inChar] != '\r' && text[inChar] != '\n') {
+ if (lineChar == iCharsPerLine && text[inChar] != '\r' && text[inChar] != '\n') {
int decreasedBy;
for (decreasedBy = 0; lineChar > 10; lineChar--, inChar--, outChar--, decreasedBy++)
if (strout[outChar] == ' ' || strout[outChar] == '\t' || strout[outChar] == '-') break;
|