summaryrefslogtreecommitdiff
path: root/plugins/MirOTR/src/utils.cpp
diff options
context:
space:
mode:
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) {