mirror of
https://github.com/daveallie/crosspoint-reader.git
synced 2026-02-05 15:17:37 +03:00
Fix style
This commit is contained in:
parent
1bcc9068c1
commit
a4242ab11e
@ -22,9 +22,7 @@ OpdsParser::~OpdsParser() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t OpdsParser::write(uint8_t c) {
|
size_t OpdsParser::write(uint8_t c) { return write(&c, 1); }
|
||||||
return write(&c, 1);
|
|
||||||
}
|
|
||||||
|
|
||||||
size_t OpdsParser::write(const uint8_t* xmlData, const size_t length) {
|
size_t OpdsParser::write(const uint8_t* xmlData, const size_t length) {
|
||||||
if (errorOccured) {
|
if (errorOccured) {
|
||||||
|
|||||||
@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "Print.h"
|
#include "Print.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -59,9 +60,7 @@ class OpdsParser final : public Print {
|
|||||||
|
|
||||||
bool error() const;
|
bool error() const;
|
||||||
|
|
||||||
operator bool() {
|
operator bool() { return !error(); }
|
||||||
return !error();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the parsed entries (both navigation and book entries).
|
* Get the parsed entries (both navigation and book entries).
|
||||||
|
|||||||
@ -8,12 +8,8 @@ int OpdsParserStream::peek() { abort(); }
|
|||||||
|
|
||||||
int OpdsParserStream::read() { abort(); }
|
int OpdsParserStream::read() { abort(); }
|
||||||
|
|
||||||
size_t OpdsParserStream::write(uint8_t c) {
|
size_t OpdsParserStream::write(uint8_t c) { return parser.write(c); }
|
||||||
return parser.write(c);
|
|
||||||
}
|
|
||||||
|
|
||||||
size_t OpdsParserStream::write(const uint8_t* buffer, size_t size) {
|
size_t OpdsParserStream::write(const uint8_t* buffer, size_t size) { return parser.write(buffer, size); }
|
||||||
return parser.write(buffer, size);
|
|
||||||
}
|
|
||||||
|
|
||||||
OpdsParserStream::~OpdsParserStream() { parser.flush(); }
|
OpdsParserStream::~OpdsParserStream() { parser.flush(); }
|
||||||
|
|||||||
@ -17,7 +17,7 @@
|
|||||||
namespace {
|
namespace {
|
||||||
constexpr int PAGE_ITEMS = 23;
|
constexpr int PAGE_ITEMS = 23;
|
||||||
constexpr int SKIP_PAGE_MS = 700;
|
constexpr int SKIP_PAGE_MS = 700;
|
||||||
constexpr char OPDS_ROOT_PATH[] = "api/opds/c7f8522c-5539-4f60-b978-3626a33245b6"; // No leading slash - relative to server URL
|
constexpr char OPDS_ROOT_PATH[] = "opds"; // No leading slash - relative to server URL
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
void OpdsBookBrowserActivity::taskTrampoline(void* param) {
|
void OpdsBookBrowserActivity::taskTrampoline(void* param) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user