diff options
Diffstat (limited to 'src/storage')
-rw-r--r-- | src/storage/phrase_index.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/storage/phrase_index.h b/src/storage/phrase_index.h index 4deac16..94c8820 100644 --- a/src/storage/phrase_index.h +++ b/src/storage/phrase_index.h @@ -707,6 +707,17 @@ public: } return true; } + + int create_sub_phrase(guint8 index) { + SubPhraseIndex * & sub_phrase = m_sub_phrase_indices[index]; + if (sub_phrase) { + return ERROR_ALREADY_EXISTS; + } + + sub_phrase = new SubPhraseIndex; + + return ERROR_OK; + } }; }; |