Commit b7c41be9 authored by sabbakumov's avatar sabbakumov Committed by Commit bot

Make GRIT not to generate const struct members

chrome.dll:
       .text:      16 bytes change
      .rdata:   25376 bytes change
       .data:  -25536 bytes change
      .reloc:     128 bytes change
Total change:     -16 bytes

BUG=677351

Review-Url: https://codereview.chromium.org/2685073002
Cr-Commit-Position: refs/heads/master@{#453145}
parent a4712e64
......@@ -56,7 +56,7 @@ def _FormatHeader(root, lang='en', output_dir='.'):
#ifndef GRIT_RESOURCE_MAP_STRUCT_
#define GRIT_RESOURCE_MAP_STRUCT_
struct GritResourceMap {
const char* const name;
const char* name;
int value;
};
#endif // GRIT_RESOURCE_MAP_STRUCT_
......
......@@ -58,7 +58,7 @@ class FormatResourceMapUnittest(unittest.TestCase):
#ifndef GRIT_RESOURCE_MAP_STRUCT_
#define GRIT_RESOURCE_MAP_STRUCT_
struct GritResourceMap {
const char* const name;
const char* name;
int value;
};
#endif // GRIT_RESOURCE_MAP_STRUCT_
......@@ -150,7 +150,7 @@ const size_t kTheRcHeaderSize = arraysize(kTheRcHeader);''', output)
#ifndef GRIT_RESOURCE_MAP_STRUCT_
#define GRIT_RESOURCE_MAP_STRUCT_
struct GritResourceMap {
const char* const name;
const char* name;
int value;
};
#endif // GRIT_RESOURCE_MAP_STRUCT_
......@@ -235,7 +235,7 @@ const size_t kTheRcHeaderSize = arraysize(kTheRcHeader);''', output)
#ifndef GRIT_RESOURCE_MAP_STRUCT_
#define GRIT_RESOURCE_MAP_STRUCT_
struct GritResourceMap {
const char* const name;
const char* name;
int value;
};
#endif // GRIT_RESOURCE_MAP_STRUCT_
......@@ -313,7 +313,7 @@ const size_t kTheRcHeaderSize = arraysize(kTheRcHeader);''', output)
#ifndef GRIT_RESOURCE_MAP_STRUCT_
#define GRIT_RESOURCE_MAP_STRUCT_
struct GritResourceMap {
const char* const name;
const char* name;
int value;
};
#endif // GRIT_RESOURCE_MAP_STRUCT_
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment