summaryrefslogtreecommitdiff
path: root/fpdfsdk/pwl
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-02-26 21:51:32 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-02-26 21:51:32 +0000
commite24d5a885ecde400936796b104f1950f756d90d2 (patch)
treeaaed0fe0a5ac137107ef9c29a53e107c39dddccd /fpdfsdk/pwl
parent0bc02c152bd0c178a5946196e2054a5cdc7650f4 (diff)
downloadpdfium-e24d5a885ecde400936796b104f1950f756d90d2.tar.xz
Get rid of some static variables.
These are generally cheap enough to compute as needed, rather than keeping around in memory all the time (plus the memory for the static flag the compiler generates to check if initialized). Change-Id: If3a5365521f6a7781e66fb11f04883a5c673ee11 Reviewed-on: https://pdfium-review.googlesource.com/27150 Commit-Queue: Tom Sepez <tsepez@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fpdfsdk/pwl')
-rw-r--r--fpdfsdk/pwl/cpwl_edit_impl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/fpdfsdk/pwl/cpwl_edit_impl.cpp b/fpdfsdk/pwl/cpwl_edit_impl.cpp
index 6fad6414d0..cb774e5ef9 100644
--- a/fpdfsdk/pwl/cpwl_edit_impl.cpp
+++ b/fpdfsdk/pwl/cpwl_edit_impl.cpp
@@ -444,8 +444,8 @@ void CPWL_EditImpl::DrawEdit(CFX_RenderDevice* pDevice,
FX_COLORREF crOldFill = crCurFill;
bool bSelect = false;
- static const FX_COLORREF crWhite = ArgbEncode(255, 255, 255, 255);
- static const FX_COLORREF crSelBK = ArgbEncode(255, 0, 51, 113);
+ const FX_COLORREF crWhite = ArgbEncode(255, 255, 255, 255);
+ const FX_COLORREF crSelBK = ArgbEncode(255, 0, 51, 113);
std::ostringstream sTextBuf;
int32_t nFontIndex = -1;