Merge pull request #41 from gansb/master
std::istream used but not declared.
This commit is contained in:
commit
cde95d09a3
|
@ -96,7 +96,7 @@ std::string Path::simplifyPath(const char *originalPath)
|
||||||
|
|
||||||
bool Path::sameFileName(const std::string &fname1, const std::string &fname2)
|
bool Path::sameFileName(const std::string &fname1, const std::string &fname2)
|
||||||
{
|
{
|
||||||
#if defined(__linux__) || defined(__sun)
|
#if defined(__linux__) || defined(__sun) || defined(__hpux)
|
||||||
return bool(fname1 == fname2);
|
return bool(fname1 == fname2);
|
||||||
#elif defined(__GNUC__)
|
#elif defined(__GNUC__)
|
||||||
return bool(strcasecmp(fname1.c_str(), fname2.c_str()) == 0);
|
return bool(strcasecmp(fname1.c_str(), fname2.c_str()) == 0);
|
||||||
|
|
|
@ -686,7 +686,7 @@ SymbolDatabase::SymbolDatabase(const Tokenizer *tokenizer, const Settings *setti
|
||||||
|
|
||||||
// create variable symbol table
|
// create variable symbol table
|
||||||
_variableList.resize(_tokenizer->varIdCount() + 1);
|
_variableList.resize(_tokenizer->varIdCount() + 1);
|
||||||
fill_n(_variableList.begin(), _variableList.size(), (const Variable*)NULL);
|
std::fill_n(_variableList.begin(), _variableList.size(), (const Variable*)NULL);
|
||||||
|
|
||||||
// check all scopes for variables
|
// check all scopes for variables
|
||||||
for (it = scopeList.begin(); it != scopeList.end(); ++it) {
|
for (it = scopeList.begin(); it != scopeList.end(); ++it) {
|
||||||
|
|
|
@ -27,6 +27,7 @@
|
||||||
#include <list>
|
#include <list>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <set>
|
#include <set>
|
||||||
|
#include <iosfwd>
|
||||||
|
|
||||||
class Token;
|
class Token;
|
||||||
class ErrorLogger;
|
class ErrorLogger;
|
||||||
|
|
Loading…
Reference in New Issue