From 893fe94f069656ef5106db1aec32ec11b85f4de2 Mon Sep 17 00:00:00 2001 From: Bo Xu Date: Fri, 14 Nov 2014 17:03:50 -0800 Subject: Remove FX_LPCWSTR cast to wchar_t* literals BUG=https://code.google.com/p/pdfium/issues/detail?id=78 R=tsepez@chromium.org Review URL: https://codereview.chromium.org/726143002 --- core/src/fxcrt/fx_basic_wstring.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/src/fxcrt/fx_basic_wstring.cpp') diff --git a/core/src/fxcrt/fx_basic_wstring.cpp b/core/src/fxcrt/fx_basic_wstring.cpp index 794630b9e5..3a13d59054 100644 --- a/core/src/fxcrt/fx_basic_wstring.cpp +++ b/core/src/fxcrt/fx_basic_wstring.cpp @@ -829,7 +829,7 @@ void CFX_WideString::FormatV(FX_LPCWSTR lpszFormat, va_list argList) ; } if (nWidth < 0 || nWidth > 128 * 1024) { - lpszFormat = (FX_LPCWSTR)L"Bad width"; + lpszFormat = L"Bad width"; nMaxLen = 10; break; } @@ -846,7 +846,7 @@ void CFX_WideString::FormatV(FX_LPCWSTR lpszFormat, va_list argList) } } if (nPrecision < 0 || nPrecision > 128 * 1024) { - lpszFormat = (FX_LPCWSTR)L"Bad precision"; + lpszFormat = L"Bad precision"; nMaxLen = 14; break; } -- cgit v1.2.3