Commit d3d2f4af authored by Alexandre Julliard's avatar Alexandre Julliard

msxml3: Remove unnecessary string constants.

parent 35dfd34a
...@@ -1294,8 +1294,6 @@ static HRESULT WINAPI xmlnode_put_dataType( ...@@ -1294,8 +1294,6 @@ static HRESULT WINAPI xmlnode_put_dataType(
static BSTR EnsureCorrectEOL(BSTR sInput) static BSTR EnsureCorrectEOL(BSTR sInput)
{ {
static const WCHAR SZ_RETURN[] = {'\n',0};
static const WCHAR SZ_LINEFEED[] = {'\r',0};
int nNum = 0; int nNum = 0;
BSTR sNew; BSTR sNew;
int nLen; int nLen;
...@@ -1305,7 +1303,7 @@ static BSTR EnsureCorrectEOL(BSTR sInput) ...@@ -1305,7 +1303,7 @@ static BSTR EnsureCorrectEOL(BSTR sInput)
/* Count line endings */ /* Count line endings */
for(i=0; i < nLen; i++) for(i=0; i < nLen; i++)
{ {
if(sInput[i] == SZ_RETURN[0]) if(sInput[i] == '\n')
nNum++; nNum++;
} }
...@@ -1318,9 +1316,9 @@ static BSTR EnsureCorrectEOL(BSTR sInput) ...@@ -1318,9 +1316,9 @@ static BSTR EnsureCorrectEOL(BSTR sInput)
sNew = SysAllocStringLen(NULL, nLen + nNum+1); sNew = SysAllocStringLen(NULL, nLen + nNum+1);
for(i=0; i < nLen; i++) 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++; nPlace++;
} }
sNew[i+nPlace] = sInput[i]; sNew[i+nPlace] = sInput[i];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment