archpkgs/zinnia/zinnia-gcc6.patch
Gabriel Ebner 8df002a49c git subrepo clone --branch=master https://aur.archlinux.org/zinnia.git
subrepo:
  subdir:   "zinnia"
  merged:   "215fc9b"
upstream:
  origin:   "https://aur.archlinux.org/zinnia.git"
  branch:   "master"
  commit:   "215fc9b"
git-subrepo:
  version:  "0.4.3"
  origin:   "???"
  commit:   "???"
2022-02-02 19:52:31 +01:00

22 lines
630 B
Diff

--- a/trainer.cpp
+++ b/trainer.cpp
@@ -93,7 +93,7 @@ class TrainerImpl: public Trainer {
public:
bool add(const Character &character) {
- const std::string y = character.value();
+ std::string y = character.value();
CHECK_FALSE(!y.empty()) << "input character is empty";
Features features;
CHECK_FALSE(features.read(character)) << "cannot read character: " << y;
@@ -103,7 +103,7 @@ class TrainerImpl: public Trainer {
if (!fn) {
return false;
}
- x_.push_back(std::make_pair<std::string, FeatureNode *>(y, fn));
+ x_.push_back(std::make_pair(y, fn));
return true;
}