Fix includes and namespaces in generators.
This commit is contained in:
parent
49efeec771
commit
1d0255f3af
|
@ -30,9 +30,7 @@
|
||||||
#include <string_view>
|
#include <string_view>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
using namespace FediBlock;
|
namespace FediBlock::html
|
||||||
|
|
||||||
namespace FediBlock
|
|
||||||
{
|
{
|
||||||
|
|
||||||
using std::cerr;
|
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[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
#include <ostream>
|
#include <ostream>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
namespace FediBlock
|
namespace FediBlock::html
|
||||||
{
|
{
|
||||||
|
|
||||||
using std::ostream;
|
using std::ostream;
|
||||||
|
@ -35,6 +35,6 @@ void write_html(ostream &out, const vector<entry_type> &entries);
|
||||||
// Copy screenshots from repo to directory.
|
// Copy screenshots from repo to directory.
|
||||||
void copy_screenshots(const fs::path &directory);
|
void copy_screenshots(const fs::path &directory);
|
||||||
|
|
||||||
} // namespace FediBlock
|
} // namespace FediBlock::html
|
||||||
|
|
||||||
#endif // FEDIBLOCK_BACKEND_HTML_HPP
|
#endif // FEDIBLOCK_BACKEND_HTML_HPP
|
||||||
|
|
|
@ -195,7 +195,6 @@ using std::cerr;
|
||||||
using std::cout;
|
using std::cout;
|
||||||
using std::exception;
|
using std::exception;
|
||||||
using std::runtime_error;
|
using std::runtime_error;
|
||||||
using std::string_view;
|
|
||||||
using std::vector;
|
using std::vector;
|
||||||
|
|
||||||
using namespace FediBlock;
|
using namespace FediBlock;
|
||||||
|
|
Reference in New Issue