Review Request 122771: method to ignore extra white spaces.
ankit wagadre
wagadre.ankit at gmail.com
Mon Mar 2 14:32:57 UTC 2015
> On March 2, 2015, 1:21 p.m., Inge Wallin wrote:
> > src/practice/writtenpracticevalidator.cpp, line 94
> > <https://git.reviewboard.kde.org/r/122771/diff/1/?file=352712#file352712line94>
> >
> > This is a strange change... Why?
"answer" is used to pass string in the rest of code.I used it to pass modified string and changed the original one.
> On March 2, 2015, 1:21 p.m., Inge Wallin wrote:
> > src/practice/writtenpracticevalidator.cpp, lines 136-145
> > <https://git.reviewboard.kde.org/r/122771/diff/1/?file=352712#file352712line136>
> >
> > First of all, check out QString::simplified(). Second, You are only supposed to remove duplicate spaces, not every space.
QString::simplified() is not necessary.its not removing all white spaces there are few conditions.For example
"hello world" != "helloworld" but "hello, world" or "hello , world" == "hello,world"
> On March 2, 2015, 1:21 p.m., Inge Wallin wrote:
> > src/practice/writtenpracticevalidator.cpp, lines 200-201
> > <https://git.reviewboard.kde.org/r/122771/diff/1/?file=352712#file352712line200>
> >
> > Now you are mixing two different bugs in the same review. This has nothing to do with whitespace, does it?
Sorry wont happen again.
- ankit
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/122771/#review76890
-----------------------------------------------------------
On March 2, 2015, 10:53 a.m., ankit wagadre wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/122771/
> -----------------------------------------------------------
>
> (Updated March 2, 2015, 10:53 a.m.)
>
>
> Review request for KDE Edu and Inge Wallin.
>
>
> Repository: parley
>
>
> Description
> -------
>
> Method to ignore extra white spaces.And some corrections.
>
>
> Diffs
> -----
>
> src/practice/writtenbackendmode.cpp 23b0260
> src/practice/writtenpracticevalidator.h ee99b25
> src/practice/writtenpracticevalidator.cpp 714ce01
>
> Diff: https://git.reviewboard.kde.org/r/122771/diff/
>
>
> Testing
> -------
>
>
> Thanks,
>
> ankit wagadre
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-edu/attachments/20150302/5fc03cba/attachment.html>
More information about the kde-edu
mailing list