diff options
Diffstat (limited to 'lang/cpp/src/gpgsignkeyeditinteractor.cpp')
-rw-r--r-- | lang/cpp/src/gpgsignkeyeditinteractor.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lang/cpp/src/gpgsignkeyeditinteractor.cpp b/lang/cpp/src/gpgsignkeyeditinteractor.cpp index f2e0ba04..b1ecad3b 100644 --- a/lang/cpp/src/gpgsignkeyeditinteractor.cpp +++ b/lang/cpp/src/gpgsignkeyeditinteractor.cpp @@ -239,6 +239,10 @@ static GpgSignKeyEditInteractor_Private::TransitionMap makeTable() addEntry(ERROR, GET_LINE, "keyedit.prompt", QUIT); addEntry(QUIT, GET_BOOL, "keyedit.save.okay", SAVE); #undef addEntry + // validate the transition map; there must not be a transition without state change + for (auto it = tab.cbegin(); it != tab.cend(); ++it) { + assert(std::get<0>(it->first) != it->second); + } return tab; } |