File tree 2 files changed +5
-6
lines changed
2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -46,13 +46,13 @@ class dstringt final
46
46
47
47
// this one is not safe for static objects
48
48
// NOLINTNEXTLINE(runtime/explicit)
49
- dstringt (const char *s):no(string_container [s])
49
+ dstringt (const char *s):no(get_string_container() [s])
50
50
{
51
51
}
52
52
53
53
// this one is not safe for static objects
54
54
// NOLINTNEXTLINE(runtime/explicit)
55
- dstringt (const std::string &s):no(string_container [s])
55
+ dstringt (const std::string &s):no(get_string_container() [s])
56
56
{
57
57
}
58
58
@@ -152,12 +152,12 @@ class dstringt final
152
152
153
153
// the reference returned is guaranteed to be stable
154
154
const std::string &as_string () const
155
- { return string_container .get_string (no); }
155
+ { return get_string_container () .get_string (no); }
156
156
};
157
157
158
158
// the reference returned is guaranteed to be stable
159
159
inline const std::string &as_string (const dstringt &s)
160
- { return string_container .get_string (s.get_no ()); }
160
+ { return get_string_container () .get_string (s.get_no ()); }
161
161
162
162
// NOLINTNEXTLINE(readability/identifiers)
163
163
struct dstring_hash
Original file line number Diff line number Diff line change @@ -49,8 +49,7 @@ void initialize_string_container()
49
49
50
50
for (unsigned i=0 ; irep_ids_table[i]!=nullptr ; i++)
51
51
{
52
- unsigned x;
53
- x=string_container[irep_ids_table[i]];
52
+ unsigned x=get_string_container ()[irep_ids_table[i]];
54
53
assert (x==i); // sanity check
55
54
}
56
55
}
You can’t perform that action at this time.
0 commit comments