Skip to content

Commit

Permalink
Rename STRICT to STRESS, in the SyllablesType enum.
Browse files Browse the repository at this point in the history
Maybe this will build on windows
  • Loading branch information
caarmen committed Feb 16, 2022
1 parent 4f583f3 commit 805bf6e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/src/main/repository/rhymeentity.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class RhymeEntity : public QObject
{
Q_OBJECT
public:
enum SyllablesType {STRICT, LAST_3, LAST_2, LAST_1};
enum SyllablesType {STRESS, LAST_3, LAST_2, LAST_1};
explicit RhymeEntity(
QString word,
SyllablesType syllablesType,
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/repository/rhymerepository.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ QString RhymeRepository::createFullQueryString() {

RhymeEntity::SyllablesType RhymeRepository::parse(QString syllablesTypeString) {
if (syllablesTypeString == "stress_syllables") {
return RhymeEntity::STRICT;
return RhymeEntity::STRESS;
} else if (syllablesTypeString == "last_three_syllables") {
return RhymeEntity::LAST_3;
} else if (syllablesTypeString == "last_two_syllables") {
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/viewmodel/rhymeentitymapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ QList<RhymeDisplayData *> *RhymeEntityMapper::map(const QList<RhymeEntity *> *rh
const char *RhymeEntityMapper::map(RhymeEntity::SyllablesType syllablesType)
{
switch (syllablesType) {
case RhymeEntity::STRICT:
case RhymeEntity::STRESS:
return "rhymer_syllables_type_strict";
case RhymeEntity::LAST_3:
return "rhymer_syllables_type_last_three_syllables";
Expand Down

0 comments on commit 805bf6e

Please sign in to comment.