don't use boost string algorithm
This commit is contained in:
@@ -3,9 +3,6 @@
|
||||
# Common libraries to link for examples.
|
||||
set(EXAMPLE_LIBS
|
||||
webcc
|
||||
Boost::filesystem
|
||||
Boost::system
|
||||
Boost::date_time
|
||||
"${CMAKE_THREAD_LIBS_INIT}")
|
||||
|
||||
if(WEBCC_ENABLE_SSL)
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
#include <iosfwd>
|
||||
#include <string>
|
||||
|
||||
#include "boost/filesystem/path.hpp"
|
||||
|
||||
struct Book {
|
||||
std::string id;
|
||||
std::string title;
|
||||
|
||||
Reference in New Issue
Block a user