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/wolfet | |
parent | f32c8783ee2ad07daf13fbbda12c66ea77ce03a6 (diff) |
Avoid constref initializers of std::wstring inside const structs
Diffstat (limited to 'plugins/wolfet')
-rw-r--r-- | plugins/wolfet/wolfet.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/plugins/wolfet/wolfet.cpp b/plugins/wolfet/wolfet.cpp index 56270d3fd..907d2a47d 100644 --- a/plugins/wolfet/wolfet.cpp +++ b/plugins/wolfet/wolfet.cpp @@ -107,7 +107,7 @@ static int fetch(float *avatar_pos, float *avatar_front, float *avatar_top, floa avatar_front[0] = cos(viewVer) * cos(viewHor); avatar_front[1] = -sin(viewVer); avatar_front[2] = cos(viewVer) * sin(viewHor); - + for (int i=0;i<3;i++) { camera_pos[i] = avatar_pos[i]; camera_front[i] = avatar_front[i]; @@ -130,7 +130,7 @@ static int trylock() { float apos[3], afront[3], atop[3], cpos[3], cfront[3], ctop[3]; std::string context; std::wstring identity; - + if (fetch(apos, afront, atop, cpos, cfront, ctop, context, identity)) return true; @@ -150,10 +150,13 @@ static const std::wstring longdesc() { return std::wstring(L"Supports Wolfenstien: Enemy Territory 2.60b. No context or identity support yet."); } +static std::wstring description(L"Wolfenstein: Enemy Territory 2.60b"); +static std::wstring shortname(L"Wolfenstein: Enemy Territory"); + static MumblePlugin wolfetplug = { MUMBLE_PLUGIN_MAGIC, - std::wstring(L"Wolfenstein: Enemy Territory 2.60b"), - std::wstring(L"Wolfenstein: Enemy Territory"), + description, + shortname, about, NULL, trylock, |