summaryrefslogtreecommitdiff
path: root/plugins/MirOTR/src/utils.cpp
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2015-07-25 14:54:09 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2015-07-25 14:54:09 +0000
commit075c7777370258c5e1ccff1dc22f31b416e1e761 (patch)
tree72ad321b228f71eec6c577e256347f2ee0d631bf /plugins/MirOTR/src/utils.cpp
parent2a81bd5a12324512985116f17674c65a5906ed1d (diff)
MirOTR:
- Fixed small memory leak git-svn-id: http://svn.miranda-ng.org/main/trunk@14690 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirOTR/src/utils.cpp')
-rw-r--r--plugins/MirOTR/src/utils.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/plugins/MirOTR/src/utils.cpp b/plugins/MirOTR/src/utils.cpp
index 37edfd734a..ffdb5e33ec 100644
--- a/plugins/MirOTR/src/utils.cpp
+++ b/plugins/MirOTR/src/utils.cpp
@@ -348,19 +348,16 @@ const TCHAR *policy_to_string(OtrlPolicy policy) {
switch (policy) {
case OTRL_POLICY_NEVER:
return TranslateT(LANG_POLICY_NEVER);
- break;
case OTRL_POLICY_OPPORTUNISTIC:
return TranslateT(LANG_POLICY_OPP);
- break;
case OTRL_POLICY_MANUAL:
case OTRL_POLICY_MANUAL_MOD:
return TranslateT(LANG_POLICY_MANUAL);
- break;
case OTRL_POLICY_ALWAYS:
return TranslateT(LANG_POLICY_ALWAYS);
- break;
+ default:
+ return TranslateT(LANG_POLICY_DEFAULT);
}
- return TranslateT(LANG_POLICY_DEFAULT);
}
OtrlPolicy policy_from_string(const TCHAR *polstring) {