~smartboyhw/ubuntu/raring/calligra/2.6.0-0ubuntu1

« back to all changes in this revision

Viewing changes to sheets/Formula.cpp

  • Committer: Package Import Robot
  • Author(s): Philip Muškovac
  • Date: 2012-10-23 21:09:16 UTC
  • mfrom: (1.1.13)
  • Revision ID: package-import@ubuntu.com-20121023210916-m82w6zxnxhaxz7va
Tags: 1:2.5.90-0ubuntu1
* New upstream alpha release (LP: #1070436)
  - Add libkactivities-dev and libopenimageio-dev to build-depends
  - Add kubuntu_build_calligraactive.diff to build calligraactive by default
  - Add package for calligraauthor and move files that are shared between
    calligrawords and calligraauthor to calligrawords-common
* Document the patches
* Remove numbers from patches so they follow the same naming scheme as
  the rest of our patches.
* calligra-data breaks replaces krita-data (<< 1:2.5.3) (LP: #1071686)

Show diffs side-by-side

added added

removed removed

Lines of Context:
656
656
    tokens.reserve(50);
657
657
 
658
658
    ++data;
659
 
    const QChar *start = data;
 
659
    const QChar * const start = data;
 
660
    const QChar * const end = start + expr.length();
660
661
    const QChar *tokenStart = data;
661
662
    const QChar *cellStart = data;
662
663
 
667
668
    QString token(length, QChar());
668
669
    token.reserve(length); // needed to not realloc at the resize at the end
669
670
    QChar * out = token.data();
670
 
    QChar * outStart = token.data();
 
671
    QChar * const outStart = token.data();
671
672
 
672
 
    while (state != Finish) {
 
673
    while (state != Finish && data < end) {
673
674
        switch (state) {
674
675
        case Start:
675
676
            tokenStart = data;
1060
1061
    }
1061
1062
 
1062
1063
    // parse error if any text remains
1063
 
    if (!data->isNull())  {
 
1064
    if (data+1 < end)  {
1064
1065
        tokens.append(Token(Token::Unknown, expr.mid(tokenStart - start), tokenStart - start));
1065
1066
        parseError = true;
1066
1067
    }