don't use boost string algorithm
This commit is contained in:
@@ -2,9 +2,10 @@
|
||||
|
||||
#include <iostream>
|
||||
|
||||
#include "boost/algorithm/string/predicate.hpp"
|
||||
#include "json/json.h"
|
||||
|
||||
#include "webcc/string.h"
|
||||
|
||||
#include "book_json.h"
|
||||
|
||||
BookClient::BookClient(const std::string& url, int timeout)
|
||||
@@ -179,7 +180,7 @@ bool BookClient::CheckPhoto(const std::filesystem::path& photo) {
|
||||
}
|
||||
|
||||
auto ext = photo.extension().string();
|
||||
if (!boost::iequals(ext, ".jpg") && !boost::iequals(ext, ".jpeg")) {
|
||||
if (!webcc::iequals(ext, ".jpg") && !webcc::iequals(ext, ".jpeg")) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
#include <list>
|
||||
#include <string>
|
||||
|
||||
#include "boost/filesystem/path.hpp"
|
||||
#include "json/json-forwards.h"
|
||||
|
||||
#include "webcc/client_session.h"
|
||||
|
||||
Reference in New Issue
Block a user