Module: wine Branch: master Commit: d3d2f4afce2e33f0d1af34ebad7107f3ad65ef65 URL: http://source.winehq.org/git/wine.git/?a=commit;h=d3d2f4afce2e33f0d1af34ebad...
Author: Alexandre Julliard julliard@winehq.org Date: Wed Mar 31 11:47:10 2010 +0200
msxml3: Remove unnecessary string constants.
---
dlls/msxml3/node.c | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/dlls/msxml3/node.c b/dlls/msxml3/node.c index 500fb94..d628b13 100644 --- a/dlls/msxml3/node.c +++ b/dlls/msxml3/node.c @@ -1294,8 +1294,6 @@ static HRESULT WINAPI xmlnode_put_dataType(
static BSTR EnsureCorrectEOL(BSTR sInput) { - static const WCHAR SZ_RETURN[] = {'\n',0}; - static const WCHAR SZ_LINEFEED[] = {'\r',0}; int nNum = 0; BSTR sNew; int nLen; @@ -1305,7 +1303,7 @@ static BSTR EnsureCorrectEOL(BSTR sInput) /* Count line endings */ for(i=0; i < nLen; i++) { - if(sInput[i] == SZ_RETURN[0]) + if(sInput[i] == '\n') nNum++; }
@@ -1318,9 +1316,9 @@ static BSTR EnsureCorrectEOL(BSTR sInput) sNew = SysAllocStringLen(NULL, nLen + nNum+1); for(i=0; i < nLen; i++) { - if(sInput[i] == SZ_RETURN[0]) + if(sInput[i] == '\n') { - sNew[i+nPlace] = SZ_LINEFEED[0]; + sNew[i+nPlace] = '\r'; nPlace++; } sNew[i+nPlace] = sInput[i];