mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-11-22 17:07:20 +01:00
Fix warnings.
This commit is contained in:
parent
d6d4538c6e
commit
bf99b34f1a
@ -125,14 +125,14 @@ void ListPage::load() {
|
||||
|
||||
dir->list_dir_begin();
|
||||
|
||||
String f = dir->get_next();
|
||||
String file = dir->get_next();
|
||||
|
||||
while (f != "") {
|
||||
while (file != "") {
|
||||
if (!dir->current_is_dir()) {
|
||||
files.push_back(folder.append_path(f));
|
||||
files.push_back(folder.append_path(file));
|
||||
}
|
||||
|
||||
f = dir->get_next();
|
||||
file = dir->get_next();
|
||||
}
|
||||
|
||||
dir->list_dir_end();
|
||||
@ -143,7 +143,7 @@ void ListPage::load() {
|
||||
|
||||
Vector<String> list_entries;
|
||||
|
||||
for (uint32_t i = 0; i < files.size(); ++i) {
|
||||
for (int i = 0; i < files.size(); ++i) {
|
||||
FileAccess *f = FileAccess::open(files[i], FileAccess::READ);
|
||||
|
||||
String fd = f->get_as_utf8_string();
|
||||
|
@ -1,9 +1,8 @@
|
||||
#ifndef PAGED_ARTICLE_H
|
||||
#define PAGED_ARTICLE_H
|
||||
|
||||
#include "core/containers/vector.h"
|
||||
#include "core/string.h"
|
||||
#include <map>
|
||||
#include "core/ustring.h"
|
||||
#include "core/vector.h"
|
||||
|
||||
#include "web/file_cache.h"
|
||||
#include "web/http/web_node.h"
|
||||
@ -18,7 +17,7 @@
|
||||
// files are served under <url>/files/<file>
|
||||
|
||||
class PagedArticle : public WebNode {
|
||||
RCPP_OBJECT(PagedArticle, WebNode);
|
||||
GDCLASS(PagedArticle, WebNode);
|
||||
|
||||
public:
|
||||
void handle_request_main(Request *request);
|
||||
@ -49,4 +48,4 @@ protected:
|
||||
FileCache *file_cache;
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user