Browse Source

- fixed typo

master
parent
commit
2d2920910a
1 changed files with 7 additions and 11 deletions
  1. +7
    -11
      src/lib/fetchfile.cpp

+ 7
- 11
src/lib/fetchfile.cpp View File

@@ -1,15 +1,15 @@
// Copyright (C) 2018 Andreas Romeyke (art1@andreas-romeyke.de), 2018.
//
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
#include <string>
@@ -23,7 +23,7 @@

//namespace fs = std::filesystem;
namespace fs = boost::filesystem;
// TODO: KLasse statt fetch_t?

using namespace std;

@@ -111,11 +111,7 @@ bool Fetchfile::fetch_all_entries() {


bool Fetchfile::validate() {
bool is_valid = true;
if (this->has_fetchfile()) {
// TODO(art1):
}
return is_valid;
return true;
}

bool Fetchfile::store( string basedir ) {
@@ -130,8 +126,8 @@ bool Fetchfile::store( string basedir ) {
ofstream fetchfile_txt_file;
fetchfile_txt_file.open( filename );
if (fetchfile_txt_file.is_open()) {
for (auto & entrie : this->entries) {
fetchfile_txt_file << entrie.url << " " << entrie.size << " " << entrie.filename << endl;
for (auto & entry : this->entries) {
fetchfile_txt_file << entry.url << " " << entry.size << " " << entry.filename << endl;
}
fetchfile_txt_file.close();
}


Loading…
Cancel
Save