Skip to content

Commit bfe3d3d

Browse files
authored
Merge pull request diffblue#2226 from tautschnig/inline-get-str-cont
Inline get_string_container
2 parents 2b00973 + 272cde0 commit bfe3d3d

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

src/util/string_container.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,3 @@ unsigned string_containert::get(const std::string &s)
7474

7575
return r;
7676
}
77-
78-
/// Get a reference to the global string container.
79-
string_containert &get_string_container()
80-
{
81-
static string_containert ret;
82-
return ret;
83-
}

src/util/string_container.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,11 @@ class string_containert
8989
string_vectort string_vector;
9090
};
9191

92-
string_containert &get_string_container();
92+
/// Get a reference to the global string container.
93+
inline string_containert &get_string_container()
94+
{
95+
static string_containert ret;
96+
return ret;
97+
}
9398

9499
#endif // CPROVER_UTIL_STRING_CONTAINER_H

0 commit comments

Comments
 (0)