Fix includes and namespaces in generators.
This commit is contained in:
parent
49efeec771
commit
1d0255f3af
|
@ -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[])
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Reference in New Issue
Block a user