diff options
author | Thorvald Natvig <slicer@users.sourceforge.net> | 2009-04-27 02:18:19 +0400 |
---|---|---|
committer | Thorvald Natvig <slicer@users.sourceforge.net> | 2009-04-27 02:18:19 +0400 |
commit | f91647345bd072e0c7257965eda41221ae21a960 (patch) | |
tree | 7a1e0af9480a819384186e3bc6acbca94def7421 /plugins/bf2142 | |
parent | f32c8783ee2ad07daf13fbbda12c66ea77ce03a6 (diff) |
Avoid constref initializers of std::wstring inside const structs
Diffstat (limited to 'plugins/bf2142')
-rw-r--r-- | plugins/bf2142/bf2142.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/plugins/bf2142/bf2142.cpp b/plugins/bf2142/bf2142.cpp index 4ba0b8c66..1a90e4703 100644 --- a/plugins/bf2142/bf2142.cpp +++ b/plugins/bf2142/bf2142.cpp @@ -184,7 +184,7 @@ static int fetch(float *avatar_pos, float *avatar_front, float *avatar_top, floa peekProc(velptr, vel, 12) && peekProc(faceptr, avatar_front, 12) && peekProc(topptr, avatar_top, 12); - + for (int i=0;i<3;i++) { camera_pos[i] = avatar_pos[i]; camera_front[i] = avatar_front[i]; @@ -202,10 +202,13 @@ static const std::wstring longdesc() { return std::wstring(L"Supports Battlefield 2142 v1.50. No context or identity support yet."); } +static std::wstring description(L"Battlefield 2142 v1.50"); +static std::wstring shortname(L"Battlefield 2142"); + static MumblePlugin bf2142plug = { MUMBLE_PLUGIN_MAGIC, - std::wstring(L"Battlefield 2142 v1.50"), - std::wstring(L"Battlefield 2142"), + description, + shortname, about, NULL, trylock, |