diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-04-09 13:50:17 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-04-09 13:50:17 +0400 |
commit | eacf5b5d6d406492ba79b44f9319867230585e9b (patch) | |
tree | 15e5b8ce210f7e8d889edf3ca40b3ee2c3a05904 /source/gameengine/Expressions/Value.cpp | |
parent | ba4ad93eada475e607831ce17883d04d1575bc32 (diff) |
BGE Text
- multi-line strings for bitmap text
- keyboard sensor now logs return and pad enter as "\n"
BGE std::vector use in Value.cpp and RAS_MaterialBucket.cpp
The size of a new list is known before making them, reduce re-allocs, though probably not a noticeable speedup.
Diffstat (limited to 'source/gameengine/Expressions/Value.cpp')
-rw-r--r-- | source/gameengine/Expressions/Value.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/gameengine/Expressions/Value.cpp b/source/gameengine/Expressions/Value.cpp index 8b910b9038b..00d1c4ca77e 100644 --- a/source/gameengine/Expressions/Value.cpp +++ b/source/gameengine/Expressions/Value.cpp @@ -436,6 +436,8 @@ vector<STR_String> CValue::GetPropertyNames() { vector<STR_String> result; if(!m_pNamedPropertyArray) return result; + result.reserve(m_pNamedPropertyArray->size()); + std::map<STR_String,CValue*>::iterator it; for (it= m_pNamedPropertyArray->begin(); (it != m_pNamedPropertyArray->end()); it++) { |