Fixed sourcery compile
This commit is contained in:
parent
43b7762ff8
commit
cc95702a36
1 changed files with 2 additions and 1 deletions
|
@ -8,6 +8,7 @@
|
||||||
#include <iomanip>
|
#include <iomanip>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
|
#include <sstream>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include "../lib/url.h"
|
#include "../lib/url.h"
|
||||||
#include "../lib/url.cpp"
|
#include "../lib/url.cpp"
|
||||||
|
@ -18,7 +19,7 @@ std::string getContents(const char * fileName){
|
||||||
std::ifstream inFile(fileName);
|
std::ifstream inFile(fileName);
|
||||||
std::string fullText;
|
std::string fullText;
|
||||||
if (inFile){
|
if (inFile){
|
||||||
std::ostringstream contents;
|
std::stringstream contents;
|
||||||
contents << inFile.rdbuf();
|
contents << inFile.rdbuf();
|
||||||
inFile.close();
|
inFile.close();
|
||||||
return contents.str();
|
return contents.str();
|
||||||
|
|
Loading…
Add table
Reference in a new issue