diff options
author | Tor Lillqvist <tml@collabora.com> | 2018-01-15 14:21:49 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2018-01-15 14:22:56 +0200 |
commit | e834526983521fc503fe259533fde8be531f59bd (patch) | |
tree | 4fe3dc80e9f4ecc1a11b663bb52b8240a7e204a8 /common | |
parent | Add Util::startsWith() to check whether a std::string starts with another (diff) | |
download | online-e834526983521fc503fe259533fde8be531f59bd.tar.gz online-e834526983521fc503fe259533fde8be531f59bd.zip |
Add FIXME
Diffstat (limited to 'common')
-rw-r--r-- | common/Session.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/common/Session.cpp b/common/Session.cpp index 6070955c1e..0a9f9c3abb 100644 --- a/common/Session.cpp +++ b/common/Session.cpp @@ -86,7 +86,9 @@ void Session::parseDocOptions(const std::vector<std::string>& tokens, int& part, for (size_t i = offset; i < tokens.size(); ++i) { - // FIXME use any kind of startsWith() instead of find(...) == 0 + // FIXME use Util::startsWith() instead of all these find(...) == 0 + // FIXME or use the getToken* functions, isn't this exactly what they are for? + if (tokens[i].find("url=") == 0) { _docURL = tokens[i].substr(strlen("url=")); |