summaryrefslogtreecommitdiff
path: root/inputmethod/zinnia/patches/patch-trainer.cpp
blob: 8f04487d85ec0c1a448ef6abac12ede0687650fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD: patch-trainer.cpp,v 1.1 2018/01/29 17:41:05 jperkin Exp $

Backport upstream fix for C++11.

--- trainer.cpp.orig	2010-05-09 05:34:08.000000000 +0000
+++ trainer.cpp
@@ -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;
   }