summaryrefslogtreecommitdiff
path: root/src/xmlpatterns
Commit message (Collapse)AuthorAgeFilesLines
* Doc: Applied title case to section1 titlesv5.4.0-beta1Nico Vertriest2014-10-092-4/+4
| | | | | | Task-number: QTBUG-41250 Change-Id: I3155acb9a6813b0309de7fa0542f29c5a3a46b17 Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
* Don't spin a nested event loop for loading schemas synchronously over HTTP.Pierre Rossi2014-09-222-42/+12
| | | | | | | | | | Instead, use the internal synchronous load API in QNAM that relies on a separate thread with a blocking queued connection, just like QtWebKit does for synchronous XHR. FTP doesn't support this attribute, so we have to keep the event loop trick for that one. Change-Id: I785fa6d967160552b31778fcfc120d7ec4194a08 Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
* Merge remote-tracking branch 'origin/5.3' into 5.4v5.4.0-alpha1Frederik Gladhorn2014-08-2814-0/+154
|\ | | | | | | Change-Id: I3d603fd0df0a445b392a758d1668bfaa9af29b53
| * Add missing private headers warningv5.3.25.3.2Samuel Gaist2014-08-1814-0/+154
| | | | | | | | | | Change-Id: Iaac8c5129451d958d4e8d90ed6bbae80ed6c8755 Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
* | Update license headers and add new license filesAntti Kokko2014-08-24716-13624/+7888
| | | | | | | | | | | | | | | | | | - Renamed LICENSE.LGPL to LICENSE.LGPLv21 - Added LICENSE.LGPLv3 & LICENSE.GPLv2 - Removed LICENSE.GPL Change-Id: If9208b9c90bcea35bbfe6b9c10db7803e97767e0 Reviewed-by: Jani Heikkinen <jani.heikkinen@digia.com>
* | fix for stack overflowKamil Rojewski2014-08-141-14/+18
| | | | | | | | | | | | | | | | | | Recursion in item mapping iterator caused a stack overflow for large datasets. Task-number: QTBUG-40153 Change-Id: I693798de0ecfd3a920a3dd270172ce7ec3c13d8d Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
* | Make QtXmlPatterns compile with the QExplicitlySharedDataPointer's static_castGiuseppe D'Angelo2014-07-081-1/+1
| | | | | | | | | | | | | | | | This module requires the static_casts to happen. Change-Id: Iea2f5aa8c6033edffd920a6de73509f3ae19721d Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Kevin Funk <kevin.funk@kdab.com>
* | Doc: Removing url variable from qdocconf file.Jerome Pasion2014-07-071-1/+0
| | | | | | | | | | | | | | -url inherited from the url variable set in qtbase/doc/global Change-Id: I4f64b5d342409fbe7013c8f5b6c1cef9b3c33673 Reviewed-by: Martin Smith <martin.smith@digia.com>
* | Add missing copy assignment operator to QXmlSchemaThiago Macieira2014-06-212-0/+12
|/ | | | | | | Found by MSVC 2013 when. Change-Id: I09c23afca4c9045523ae0722751fb27737b1b5f8 Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
* Fix copy and paste errorv5.3.1stable5.3.1Frederik Gladhorn2014-05-161-1/+1
| | | | | | | | | Fix error 11 identified by static analysis from http://www.viva64.com/en/b/0251/ Change-Id: I3ed821c6d7cda874bfa5e3a24ccde1a4f2f13ec9 Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com> Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
* Fix copy and paste errorFrederik Gladhorn2014-05-141-2/+2
| | | | | | | | Fix error 8 and 9 identified by static analysis from http://www.viva64.com/en/b/0251/ Change-Id: I7f6741513814d8707e9dfe3402f970696238b8a3 Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
* Fix typov5.3.0-rc1v5.3.0release5.3.0Sergio Ahumada2014-04-011-1/+1
| | | | | Change-Id: I4754f1bc1f9fb3e099fc7c7135ca0a933d9b7475 Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
* Compile fix for WinRTMaurice Kalinowski2014-01-241-1/+1
| | | | | Change-Id: I1c9a9027ac4a592aaf6f34450ab6fbcf3224e47f Reviewed-by: Oliver Wolff <oliver.wolff@digia.com>
* whitespace fixesOswald Buddenhagen2014-01-229-15/+15
| | | | | | | | remove trailing spaces & expand tabs Change-Id: Ic958087d8c50f3c51d767f5191e54c4079cc74a2 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
* fix conditionals in DayTimeDuration::stringValue()Joerg Bornemann2014-01-141-4/+2
| | | | | | | Task-number: QTBUG-35479 Change-Id: If385bd85f5c20871a0248c828626deea2d72e0a2 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: Peter Hartmann <phartmann@blackberry.com>
* Remove unused variable, found by ICC 14v5.2.1Thiago Macieira2014-01-101-2/+0
| | | | | | | | | qxslttokenizer.cpp(700): warning #177: variable "val" was declared but never referenced const QStringRef val(m_currentAttributes.value(CommonNamespaces::XML, QLatin1String("space"))); ^ Change-Id: Ic806bf1e9c22ead8680907b0e22794d7b07dcc90 Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
* Remove unused static functions in QtXmlPatternsThiago Macieira2014-01-091-6/+0
| | | | | | | | Found by Clang 3.4. Change-Id: I60f78b62d2ecacf58d534623eced537ca62a2405 Reviewed-by: Robin Burchell <robin+qt@viroteck.net> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
* Fix MSVC2010 warnings.Mitch Curtis2013-12-061-7/+1
| | | | | | Change-Id: I081b4ebad362d99dcae594f877592f2a910002f3 (cherry picked from commit e7a51b138772cb453555d27f44e6a2c0e79e799c) Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
* Sync source and generated versions of the query parser.Thiago Macieira2013-12-063-1116/+1569
| | | | | | | | | | | | | | The following manual changes to qquerytransformparser.cpp were not reflected in the .ypp source, but they are now: c95a0e6e8eb8ba5fd2a4412b318ad998b3ccb4fc (Nov 2009) c1623a0d42c9869e5a1d04081e7660722a863de5 (Apr 2012) The following change is lost because it modified code generated by bison (not from .ypp) and needs to be re-applied: e7a51b138772cb453555d27f44e6a2c0e79e799c Change-Id: I72e76732acd1c370394c9fc373522b43ace6e009 Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
* make it possible to disable XML schema usagePeter Hartmann2013-11-152-8/+16
| | | | | | | | | | | | | | | | | | | | | | | Removing XML schema functionality reduces the size of libQt5XmlPatterns.so considerably: Linux desktop release mode: with XML schema: 4.3 MB without XML schema: 3.2 MB BlackBerry10 release mode: with XML schema: 2.6 MB without XML schema: 1.9 MB XML schema might not be used, especially on a mobile / embedded device, as opposed to the rest of xmlpatterns (e.g. XPath through QML XmlListModel). Task-number: QTBUG-28068 Change-Id: I5024a822179e7241e592f079efe3adef8f661c70 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
* Doc: Updated url variable in qdocconf files.v5.2.0-rc1v5.2.0Jerome Pasion2013-11-061-0/+1
| | | | | | | | | | | | | | In 5.2, the HTML output is in a flatter structure and when they are hosted in qt-project.org/doc, the documentation will be found at http://qt-project.org/doc/qt-$QT_VER The url variable is used by projects outside of Qt 5 which need to link to Qt 5 documentation, such as Qt Creator. Task-number: QTBUG-34584 Change-Id: I7f989870b311e101ed4de85f3139f010012cfd71 Reviewed-by: Topi Reiniö <topi.reinio@digia.com> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com>
* QAbstractXmlNodeModel: avoid undefined behaviorMarc Mutz2013-11-051-4/+2
| | | | | | | | | | | | | | | | | | | | | | | In 409655f3451815930b70a71baa175ab9f34467ed, the C-style cast was replaced by pointer arithmetic: char *null = 0; return null + offset; Says the standard (5.7 [expr.add]/5): When an expression that has integral type is added to or subtracted from a pointer, [...] If both the pointer operand and the result point to elements of the same array object, or one past the last element of the array object, the evaluation shall not produce an overflow; otherwise, the behavior is undefined. Iow: the above code has undefined behaviour. Fix by going back to the casting version, but using a C++ reinterpret_cast instead of a C-style one. Task-number: QTBUG-32735 Change-Id: Ia774491b13b1c52089daf63a7921b163fc93abce Reviewed-by: Olivier Goffart <ogoffart@woboq.com> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* Revert "Handle new QtTraceMsg type, fix warnings about unhandled enumeration ↵Kai Koehne2013-11-051-2/+1
| | | | | | | | | | value." This reverts commit bf49d9f0d41c3be802dbdd2c23dfe7c5fd86f4b0. QtTraceMsg was removed from QtCore for the moment, too. Change-Id: I1d6aaacf5e363f81272da4fbb0a4ff12337dd677 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
* Fix undefined behavior validating XSD substitution groupsMark Shroyer2013-10-021-1/+1
| | | | | | | | | | | | | | | | | | | | | A bug in XSD substitution group validation would result in an invalid cast of SchemaType::Ptr to XsdComplexType::Ptr, in which case evaluating complexType->prohibitedSubstitutions() exhibited undefined behavior. In practice this caused validation against XSD schemas containing substitution groups to fail on some machines, where ORing the checkSet mask against out of bounds memory could cause the function XsdSchemaHelper::substitutionGroupOkTransitive() to return a false negative. Minus the bug fix, the regression test added in this commit failed on (at least) Linux ARM when compiled with the Linaro toolchain 2013.01 g++ 4.7, with flags -marm -mcpu=cortex-a8 -O2. However, it did not fail on a Linux amd64 machine prior to the bug fix. Change-Id: Idd060a941a3bc0620f1fcc903375e43022bdcbdc Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* Remove QtAlgorithms usage from QtXmlPatterns.Friedemann Kleint2013-09-273-4/+10
| | | | | | | | QtAlgorithms is getting deprecated, see http://www.mail-archive.com/development@qt-project.org/msg01603.html Change-Id: I4e2c7bf7970ba59ca9443c545b66db9f509d946b Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
* Handle new QtTraceMsg type, fix warnings about unhandled enumeration value.Friedemann Kleint2013-09-261-1/+2
| | | | | Change-Id: Ia908aa03e0f6a0e4f92013ae84fc68ac73919d08 Reviewed-by: hjk <hjk121@nokiamail.com>
* Fix MSVC2010 warnings.v5.2.0-alpha1Mitch Curtis2013-09-242-7/+3
| | | | | Change-Id: Ic586e7d306729f26859411b17c79d36320f487e7 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
* Adapt to QDateTime's new timezone supportThiago Macieira2013-09-231-0/+6
| | | | | | Change-Id: I685b1be45fcf6b59de12204ca471e35a5a03f06d Reviewed-by: Mitch Curtis <mitch.curtis@digia.com> Reviewed-by: John Layt <jlayt@kde.org>
* Fix Clang warning of constant-false comparisonThiago Macieira2013-09-071-1/+1
| | | | | | | qstringvaluefns.cpp:224:23: error: comparison of constant -1 with expression of type 'QString::NormalizationForm' is always false [-Werror,-Wtautological-constant-out-of-range-compare] Change-Id: Ia0dd98f72521709712f5ed11ecf19a48acaf1998 Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
* Merge remote-tracking branch 'origin/stable' into devSergio Ahumada2013-09-061-3/+3
|\ | | | | | | Change-Id: I29e25aef95a7b845bfe7d57d41369fec2f1fd562
| * Replace use of C-style cast with something that is not a cast.old/5.1Thiago Macieira2013-08-161-3/+3
| | | | | | | | | | | | | | | | | | Avoids a warning in user code. We should add -Wold-style-cast to our header checks. Task-number: QTBUG-32735 Change-Id: Ic284e3a5df56789d51484364b34a9ebc026bb20a Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
* | Use the new, non-deprecated QDateTime functions for UTC offsetThiago Macieira2013-09-033-6/+6
| | | | | | | | | | Change-Id: Ia7f8c08bba44fbb01d3babeed7a430dcb9660b99 Reviewed-by: John Layt <jlayt@kde.org>
* | QtXmlPatterns: Fix (!a == b) bugTobias Hunger2013-08-292-2/+2
| | | | | | | | | | | | | | | | | | | | The ! applies to a only, so the result of this expression is most likely not what was expected. Clang warned about this one. Change-Id: I600c1ec70fa22313eee70ecce8995afd83713de6 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* | Doc: Setting \qtvariable in module page.Jerome Pasion2013-08-021-0/+1
| | | | | | | | | | | | | | \qtvariable indicates the QT variable needed in .pro files. Change-Id: Iefd2cbc9f516cf3abb76b0f2fc2c009fb9a83900 Reviewed-by: Martin Smith <martin.smith@digia.com>
* | Merge remote-tracking branch 'origin/stable' into devFrederik Gladhorn2013-07-232-4/+4
|\ \ | |/ | | | | Change-Id: I746d5aa3e11e8c01c370db3786788270cdd7c685
| * Replace qt.nokia.com by www.qt-project.org in doc snippets.Friedemann Kleint2013-07-162-4/+4
| | | | | | | | | | | | | | | | Task-number: QTBUG-32390 Change-Id: I1e08a4cd5bbefbfc5cfd5b36724089cb1d0e78a8 Reviewed-by: Topi Reiniö <topi.reinio@digia.com> Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
* | Merge remote-tracking branch 'origin/stable' into devFrederik Gladhorn2013-07-111-1/+1
|\ \ | |/ | | | | Change-Id: Ibc00a0629361eb26d2ad3b47e64620a2ad03717b
| * Fix mailing list address.Friedemann Kleint2013-07-111-1/+1
| | | | | | | | | | Change-Id: I31792fd1ce8dc353403a91935c872334ca7e10cc Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
* | Doc: Setting navigation bar variables.Jerome Pasion2013-06-261-1/+4
|/ | | | | Change-Id: I0e0ac77bbae4847e65f62fb3d5b7d2c5c2368eb0 Reviewed-by: Martin Smith <martin.smith@digia.com>
* Remove use of 'register' from QtXmlPatterns.Stephen Kelly2013-06-161-5/+5
| | | | | Change-Id: I7d5136b9381fcce1ac7233ac743ab205d73ca0fa Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
* Fix warnings found by clang: private members unused in classesThiago Macieira2013-06-112-10/+7
| | | | | | | | | | | | These are private classes, so there's no need to keep binary compatibility or reserved members. qabstractxmlpullprovider_p.h:103:41: error: private field 'd' is not used [-Werror,-Wunused-private-field] projectedexpression_p.h:124:55: error: private field 'm_axis' is not used [-Werror,-Wunused-private-field] qprojectedexpression_p.h:154:41: error: private field 'm_right' is not used [-Werror,-Wunused-private-field] Change-Id: Idd46da87aaa85124b285cdcf01cf76eaa16e86c3 Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
* Doc: Removed module page from "technology-apis" group.Jerome Pasion2013-05-241-1/+0
| | | | | | | The overviews in the main index.html replaced the technology-apis group. Change-Id: I827abd6488b07c75a23925137fce75d37de05319 Reviewed-by: Geir Vattekar <geir.vattekar@digia.com>
* Doc: Fix module name in .qdocconfTopi Reinio2013-04-261-11/+11
| | | | | | | | | Use CamelCase for module name(s) used in in .qdocconf - this is required as qdoc will generate visible output (tags in example manifest files) based on these names. Change-Id: I2ec5426b5f2a3ea6cc40608ef2bc6c9e7b6f8dd2 Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
* Merge remote-tracking branch 'origin/stable' into devFrederik Gladhorn2013-02-181-1/+1
|\ | | | | | | Change-Id: Iafbd5b538ebe0254d5fcea0fad0e58f8b66c1084
| * substitute fixed version numbers in qdocconf files with variablesOswald Buddenhagen2013-02-051-1/+1
| | | | | | | | | | Change-Id: I2424061251bc55cc2196c483ba421bef831a36b6 Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
* | Merge remote-tracking branch 'origin/stable' into devFrederik Gladhorn2013-02-05745-752/+753
|\ \ | |/ | | | | Change-Id: I0e2f2023d576e479246ed86c6a95eba3c8b9d93b
| * Merge branch 'release' into stableSergio Ahumada2013-01-311-1/+1
| |\ | | | | | | | | | Change-Id: I36ba2436d653e88a03fcb1e04658e50f8ad8392e
| | * doc: Fix namespace version to 5.0.1 for qhp documentationSergio Ahumada2013-01-121-1/+1
| | | | | | | | | | | | | | | Change-Id: Iab36160fc699f5d81e201aacd003b84c1be8a51b Reviewed-by: hjk <qthjk@ovi.com>
| * | Doc: Fix "Class QXmlNamePool has no \inmodule command"Sze Howe Koh2013-01-281-0/+1
| | | | | | | | | | | | | | | | | | | | | All others in this folder use "\inmodule QtXmlPatterns" Change-Id: I460cba6b91a49e2af00ab909bea5af11919e8386 Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
| * | Doc: Fix module name formatSze Howe Koh2013-01-253-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | Follow the conventions at http://qt-project.org/wiki/Spelling_Module_Names_in_Qt_Documentation Change-Id: I1a8b3cafa9d1b9a6fdde835ae93f5f87b4d3970c Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>