Maemo: Polish class interface.

This commit is contained in:
ck
2010-08-12 19:46:58 +02:00
parent 77941ddf9d
commit 47562aa1e8
2 changed files with 7 additions and 4 deletions

View File

@@ -139,14 +139,14 @@ private:
{
const int startPort = parsePort();
if (atEnd() || nextChar() != '-') {
m_portList.addRange(MaemoPortList::Range(startPort, startPort));
m_portList.addPort(startPort);
return;
}
++m_pos;
const int endPort = parsePort();
if (endPort < startPort)
throw ParseException("Invalid range (end < start).");
m_portList.addRange(MaemoPortList::Range(startPort, endPort));
m_portList.addRange(startPort, endPort);
}
int parsePort()