Fix includes and namespaces in generators.

This commit is contained in:
tastytea 2020-10-29 14:45:53 +01:00
parent 49efeec771
commit 1d0255f3af
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
3 changed files with 7 additions and 7 deletions

View File

@ -30,9 +30,7 @@
#include <string_view>
#include <vector>
using namespace FediBlock;
namespace FediBlock
namespace FediBlock::html
{
using std::cerr;
@ -163,7 +161,10 @@ void copy_screenshots(const fs::path &directory)
}
}
} // namespace FediBlock
} // namespace FediBlock::html
using namespace FediBlock;
using namespace FediBlock::html;
int main(int argc, char *argv[])
{

View File

@ -23,7 +23,7 @@
#include <ostream>
#include <vector>
namespace FediBlock
namespace FediBlock::html
{
using std::ostream;
@ -35,6 +35,6 @@ void write_html(ostream &out, const vector<entry_type> &entries);
// Copy screenshots from repo to directory.
void copy_screenshots(const fs::path &directory);
} // namespace FediBlock
} // namespace FediBlock::html
#endif // FEDIBLOCK_BACKEND_HTML_HPP

View File

@ -195,7 +195,6 @@ using std::cerr;
using std::cout;
using std::exception;
using std::runtime_error;
using std::string_view;
using std::vector;
using namespace FediBlock;