Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(91)

Unified Diff: core/src/fxcrt/fx_extension.cpp

Issue 1730553002: Fixing whitespace lint errors. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: core/src/fxcrt/fx_extension.cpp
diff --git a/core/src/fxcrt/fx_extension.cpp b/core/src/fxcrt/fx_extension.cpp
index cae1763c7ee573796287f0b4b1986c8f8572dffb..30ab2c35220844d8bb28f5a27535981ca27ff563 100644
--- a/core/src/fxcrt/fx_extension.cpp
+++ b/core/src/fxcrt/fx_extension.cpp
@@ -333,8 +333,9 @@ void FX_Random_GenerateBase(FX_DWORD* pBuffer, int32_t iCount) {
::srand((dwHash1 << 16) | (FX_DWORD)dwHash2);
#else
time_t tmLast = time(NULL), tmCur;
Tom Sepez 2016/02/23 17:44:18 nit: one per line.
dsinclair 2016/02/23 19:14:01 Done.
- while ((tmCur = time(NULL)) == tmLast)
- ;
+ while ((tmCur = time(NULL)) == tmLast) {
Tom Sepez 2016/02/23 17:44:18 nit: my personal preference is to use "continue" f
dsinclair 2016/02/23 19:14:01 Done.
+ }
+
::srand((tmCur << 16) | (tmLast & 0xFFFF));
#endif
while (iCount-- > 0) {

Powered by Google App Engine
This is Rietveld 408576698