From fe2cd4d914205f2da91286e7270209e2016d51a1 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Wed, 22 Nov 2017 20:04:12 +0000 Subject: Remove some pointless assignments to "". Or change them to clear(). Change-Id: Ia9e3e1f0d74b948cec3f8df85d205f830ac9216c Reviewed-on: https://pdfium-review.googlesource.com/19172 Reviewed-by: dsinclair Commit-Queue: Lei Zhang --- fxjs/cjs_global.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fxjs') diff --git a/fxjs/cjs_global.cpp b/fxjs/cjs_global.cpp index 0fef8d5334..db63a4b8b9 100644 --- a/fxjs/cjs_global.cpp +++ b/fxjs/cjs_global.cpp @@ -555,7 +555,7 @@ CJS_Return JSGlobalAlternate::SetGlobalVariables(const ByteString& propname, if (pTemp->bDeleted || pTemp->nType != nType) { pTemp->dData = 0; pTemp->bData = 0; - pTemp->sData = ""; + pTemp->sData.clear(); pTemp->nType = nType; } pTemp->bDeleted = false; -- cgit v1.2.3