Skip to content

Commit

Permalink
Compile fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
kevina committed Aug 9, 2019
1 parent 7e42100 commit b08a1e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions modules/speller/default/suggest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,10 @@

using namespace aspeller;
using namespace acommon;
using namespace std;
using std::pair;

namespace {

typedef vector<String> NearMissesFinal;

template <class Iterator>
inline Iterator preview_next (Iterator i) {
return ++i;
Expand Down
4 changes: 2 additions & 2 deletions prog/aspell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
# include <langinfo.h>
#endif

#include "errors.hpp"
#include "aspell.h"

#include <math.h>
Expand Down Expand Up @@ -269,7 +268,8 @@ PosibErr<ShowScores> get_show_scores() {
return ShowNormalized;
if (val == "dist" || val == "distance")
return ShowDistance;
return make_err(acommon::bad_value, "show-scores", val, _("one of false, true or dist"));
return make_err(reinterpret_cast<const ErrorInfo *>(aerror_bad_value),
"show-scores", val, _("one of false, true or dist"));
}

int main (int argc, const char *argv[])
Expand Down

0 comments on commit b08a1e9

Please sign in to comment.