summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2018-01-15 14:21:49 +0200
committerTor Lillqvist <tml@collabora.com>2018-01-15 14:22:56 +0200
commite834526983521fc503fe259533fde8be531f59bd (patch)
tree4fe3dc80e9f4ecc1a11b663bb52b8240a7e204a8 /common
parentAdd Util::startsWith() to check whether a std::string starts with another (diff)
downloadonline-e834526983521fc503fe259533fde8be531f59bd.tar.gz
online-e834526983521fc503fe259533fde8be531f59bd.zip
Add FIXME
Diffstat (limited to 'common')
-rw-r--r--common/Session.cpp4
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="));