From kde-panel-devel Tue May 30 14:26:01 2017 From: David Edmundson Date: Tue, 30 May 2017 14:26:01 +0000 To: kde-panel-devel Subject: D6027: Use existing parseInt function Message-Id: X-MARC-Message: https://marc.info/?l=kde-panel-devel&m=149615437627728 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--1393e4185a5f44dc9eb27c9de37a2995" --1393e4185a5f44dc9eb27c9de37a2995 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="ascii" Mime-Version: 1.0 davidedmundson created this revision. Restricted Application added a project: Plasma. Restricted Application added a subscriber: plasma-devel. REVISION SUMMARY There's already a QString::toInt() that validates input. We don't need to make our own. Also there was a bug in the current point parsing code if the first was invalid but the second valid. Both need to be checked. TEST PLAN Compiles REPOSITORY R110 KScreen Library BRANCH master REVISION DETAIL https://phabricator.kde.org/D6027 AFFECTED FILES src/doctor/doctor.cpp src/doctor/doctor.h To: davidedmundson, #plasma Cc: plasma-devel, ZrenBot, spstarr, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart, lukas --1393e4185a5f44dc9eb27c9de37a2995 Content-Transfer-Encoding: 7bit Content-Type: text/html; charset="ascii" Mime-Version: 1.0 View Revision
davidedmundson created this revision.
Restricted Application added a project: Plasma.
Restricted Application added a subscriber: plasma-devel.

REVISION SUMMARY

There's already a QString::toInt() that validates input. We don't need
to make our own.

Also there was a bug in the current point parsing code if the first was
invalid but the second valid. Both need to be checked.


TEST PLAN

Compiles


REPOSITORY
R110 KScreen Library

BRANCH
master

REVISION DETAIL
https://phabricator.kde.org/D6027

AFFECTED FILES
src/doctor/doctor.cpp
src/doctor/doctor.h

To: davidedmundson, Plasma
Cc: plasma-devel, ZrenBot, spstarr, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart, lukas
--1393e4185a5f44dc9eb27c9de37a2995--