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/cod5 | |
parent | f32c8783ee2ad07daf13fbbda12c66ea77ce03a6 (diff) |
Avoid constref initializers of std::wstring inside const structs
Diffstat (limited to 'plugins/cod5')
-rw-r--r-- | plugins/cod5/cod5.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/plugins/cod5/cod5.cpp b/plugins/cod5/cod5.cpp index 86e0f64a6..be10aee9e 100644 --- a/plugins/cod5/cod5.cpp +++ b/plugins/cod5/cod5.cpp @@ -121,7 +121,7 @@ static int fetch(float *avatar_pos, float *avatar_front, float *avatar_top, floa avatar_front[0] = -sin(viewHor) * cos(viewVer); avatar_front[1] = -sin(viewVer); avatar_front[2] = cos(viewHor) * cos(viewVer); - + for (int i=0;i<3;i++) { camera_pos[i] = avatar_pos[i]; camera_front[i] = avatar_front[i]; @@ -144,7 +144,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; @@ -164,10 +164,13 @@ static const std::wstring longdesc() { return std::wstring(L"Supports Call of Duty 5 v1.4.1144 only. No context or identity support yet."); } +static std::wstring description(L"Call of Duty 5 v1.4.1144"); +static std::wstring shortname(L"Call of Duty 5"); + static MumblePlugin cod5plug = { MUMBLE_PLUGIN_MAGIC, - std::wstring(L"Call of Duty 5 v1.4.1144"), - std::wstring(L"Call of Duty 5"), + description, + shortname, about, NULL, trylock, |