summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-02-03 09:17:40 -0500
committerStar Rauchenberger <fefferburbia@gmail.com>2023-02-03 09:17:40 -0500
commitc97c846887eecc75e2f06c56f5e4b8def63ae7a5 (patch)
tree23af01010d05e564f2b7c12f1e41b4931eeafee2 /lib
parent64f26d4a3b80969e08a607f80dde87d49ad5c2e3 (diff)
downloadverbly-c97c846887eecc75e2f06c56f5e4b8def63ae7a5.tar.gz
verbly-c97c846887eecc75e2f06c56f5e4b8def63ae7a5.tar.bz2
verbly-c97c846887eecc75e2f06c56f5e4b8def63ae7a5.zip
Fixed frequencies using mpark variant
Diffstat (limited to 'lib')
-rw-r--r--lib/form.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/form.cpp b/lib/form.cpp index fa72c8a..18b495d 100644 --- a/lib/form.cpp +++ b/lib/form.cpp
@@ -37,10 +37,10 @@ namespace verbly {
37 proper_ = (std::get<int>(row[3]) == 1); 37 proper_ = (std::get<int>(row[3]) == 1);
38 length_ = std::get<int>(row[4]); 38 length_ = std::get<int>(row[4]);
39 39
40 if (!mpark::holds_alternative<std::nullptr_t>(row[5])) 40 if (!std::holds_alternative<std::nullptr_t>(row[5]))
41 { 41 {
42 hasFreq_ = true; 42 hasFreq_ = true;
43 frequency_ = mpark::get<int>(row[5]); 43 frequency_ = std::get<int>(row[5]);
44 } 44 }
45 45
46 pronunciations_ = db.pronunciations(*this, pronunciation::id, -1).all(); 46 pronunciations_ = db.pronunciations(*this, pronunciation::id, -1).all();