X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/24d9135d305ba6ad76dde5bb36038dd1912fd104..bf998c10baabbd95f2d59d29f9edea0eb107b156:/Complete.cpp diff --git a/Complete.cpp b/Complete.cpp index 6ce6671..d822d99 100644 --- a/Complete.cpp +++ b/Complete.cpp @@ -28,7 +28,7 @@ static CYExpression *ParseExpression(CYPool &pool, CYUTF8String code) { std::stringstream stream; stream << '(' << code << ')'; - CYDriver driver(pool, stream); + CYDriver driver(pool, *stream.rdbuf()); if (driver.Parse() || !driver.errors_.empty()) return NULL; @@ -51,7 +51,7 @@ static CYExpression *ParseExpression(CYPool &pool, CYUTF8String code) { _visible char **CYComplete(const char *word, const std::string &line, CYUTF8String (*run)(CYPool &pool, const std::string &)) { CYLocalPool pool; - std::istringstream stream(line); + std::stringbuf stream(line); CYDriver driver(pool, stream); driver.auto_ = true;