This stuff doesn't need to be in oro
This commit is contained in:
parent
eeab1d5c5e
commit
53ba7febf4
4 changed files with 6 additions and 7 deletions
|
@ -9,7 +9,7 @@
|
|||
# undef base64_decode
|
||||
#endif
|
||||
|
||||
namespace oro {
|
||||
namespace duck {
|
||||
|
||||
std::vector<char> base64_decode (std::string_view text) {
|
||||
base64_decode_context ctx;
|
||||
|
@ -26,6 +26,6 @@ std::vector<char> base64_decode (std::string_view text) {
|
|||
return retval;
|
||||
}
|
||||
|
||||
} //namespace oro
|
||||
} //namespace duck
|
||||
|
||||
#undef restrict
|
|
@ -3,8 +3,8 @@
|
|||
#include <string_view>
|
||||
#include <vector>
|
||||
|
||||
namespace oro {
|
||||
namespace duck {
|
||||
|
||||
std::vector<char> base64_decode (std::string_view text);
|
||||
|
||||
} //namespace oro
|
||||
} //namespace duck
|
|
@ -52,7 +52,7 @@ executable(meson.project_name(),
|
|||
'timer_icons.cpp',
|
||||
'oro/originsdb.cpp',
|
||||
'gnulib/lib/base64.c',
|
||||
'oro/base64.cpp',
|
||||
'base64.cpp',
|
||||
project_config_file,
|
||||
install: true,
|
||||
dependencies: lib_deps,
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
#include "SQLiteCpp/SQLiteCpp.h"
|
||||
#include "oro/items.hpp"
|
||||
#include "oro/icons.hpp"
|
||||
#include "oro/base64.hpp"
|
||||
#include <mutex>
|
||||
|
||||
namespace oro {
|
||||
|
@ -82,7 +81,7 @@ void OriginsDB::update (const Icons& icons) {
|
|||
query.exec();
|
||||
query.reset();
|
||||
|
||||
base64_decode(std::string_view(ico.icon).substr(std::string_view("data:image/png;base64,").size()));
|
||||
//base64_decode(std::string_view(ico.icon).substr(std::string_view("data:image/png;base64,").size()));
|
||||
}
|
||||
|
||||
transaction.commit();
|
||||
|
|
Loading…
Reference in a new issue