Remove excessive constant declarations
When all .cc files are #included from a single master C++ file, repetitive constant definitions - although the constant value remains the same - makes MSVC error out. Besides, it is not a good practice to redefine same constant over and over again. It defies the main idea of constants: "define once, use many times".
This commit is contained in:
@@ -20,8 +20,6 @@
|
||||
#include "tote.h"
|
||||
#include <string>
|
||||
|
||||
static const int kMinCJKUTF8CharBytes = 3;
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Offline: used by mapreduce or table construction
|
||||
//------------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user