mirror of
https://github.com/reactos/reactos.git
synced 2025-06-06 09:50:43 +00:00
[RAPPS] Replaced double ternary operators with one if
for readability
svn path=/branches/GSoC_2017/rapps/; revision=75809
This commit is contained in:
parent
d733214459
commit
94e82f5f37
1 changed files with 9 additions and 2 deletions
|
@ -19,8 +19,15 @@ class CRichEdit :
|
||||||
|
|
||||||
SendMessageW(EM_SETTEXTEX, (WPARAM) &SetText, (LPARAM) lpszText);
|
SendMessageW(EM_SETTEXTEX, (WPARAM) &SetText, (LPARAM) lpszText);
|
||||||
|
|
||||||
SetRangeFormatting(Len, Len + InsertedTextLen,
|
if ((dwEffects == CFM_LINK) && !PathIsURLW(lpszText))
|
||||||
(dwEffects == CFM_LINK) ? (PathIsURLW(lpszText) ? dwEffects : 0) : dwEffects);
|
{
|
||||||
|
// if text is not an URL, no styling is used
|
||||||
|
SetRangeFormatting(Len, Len + InsertedTextLen, 0);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
SetRangeFormatting(Len, Len + InsertedTextLen, dwEffects);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue