diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2010-04-29 12:51:39 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2010-04-29 12:51:39 (GMT) |
commit | 54319451a550acd92ac48259d5d84c2a91f09666 (patch) | |
tree | 9499db4cc6e6bff291713b3fd31ddf9fbc021dcc /Source | |
parent | 7b7bf9344ccb197aa6a4a8146d16301611646d83 (diff) | |
download | CMake-54319451a550acd92ac48259d5d84c2a91f09666.zip CMake-54319451a550acd92ac48259d5d84c2a91f09666.tar.gz CMake-54319451a550acd92ac48259d5d84c2a91f09666.tar.bz2 |
Make get_stl_prime_list an inline function to avoid duplicate copies of it.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/kwsys/hashtable.hxx.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/kwsys/hashtable.hxx.in b/Source/kwsys/hashtable.hxx.in index 2b80f4b..2f337ba 100644 --- a/Source/kwsys/hashtable.hxx.in +++ b/Source/kwsys/hashtable.hxx.in @@ -390,7 +390,7 @@ enum { _stl_num_primes = 31 }; // create a function with a static local to that function that returns // the static -const unsigned long* get_stl_prime_list() { +inline const unsigned long* get_stl_prime_list() { static const unsigned long _stl_prime_list[_stl_num_primes] = { |