From 135c6601bd9d12bd935371d3122f8e75391de75b Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Tue, 21 Nov 2017 18:07:00 +0000 Subject: Add {Byte/Wide}String::Trim(). So callers no longer have to call str.TrimLeft(); str.TrimRight(); Change-Id: If931eaa8d891f487b9618ebbeee5ee294e807846 Reviewed-on: https://pdfium-review.googlesource.com/18990 Reviewed-by: dsinclair Commit-Queue: Lei Zhang --- fxjs/cjs_publicmethods.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'fxjs/cjs_publicmethods.cpp') diff --git a/fxjs/cjs_publicmethods.cpp b/fxjs/cjs_publicmethods.cpp index 7220693813..eaa16c9fe1 100644 --- a/fxjs/cjs_publicmethods.cpp +++ b/fxjs/cjs_publicmethods.cpp @@ -73,8 +73,7 @@ const wchar_t* const kFullMonths[] = {L"January", L"February", L"March", template T StrTrim(const T& str) { T result = str; - result.TrimLeft(' '); - result.TrimRight(' '); + result.Trim(' '); return result; } -- cgit v1.2.3