qt5base-lts/examples/corelib/serialization/convert
Edward Welbourne d57a78657e Break out the list of available converters to a static method
Mostly to pave the way for moving the class code to a file of its own,
but this incidentally saves the need to std::as_const() every use.
Moving the underlying object to a local static of a private method
also saves the need for heap allocation (which was leaked).

Pick-to: 6.6 6.5
Task-number: QTBUG-111228
Change-Id: I30f4bf3c46d39e04d0ac4e3e9ba431945ebb9193
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io>
2023-11-01 21:28:55 +01:00
..
doc Rename Convert Example to Serialization Converter 2023-10-30 18:19:57 +02:00
cborconverter.cpp Replace confusing member variable with a predicate 2023-11-01 21:28:55 +01:00
cborconverter.h Turn Converter::Direction into a QFlags enum 2023-09-08 18:17:37 +02:00
CMakeLists.txt Split VariantOrderedMap out of Converter's header in example 2023-10-16 22:38:17 +02:00
convert.pro Split VariantOrderedMap out of Converter's header in example 2023-10-16 22:38:17 +02:00
converter.h Break out the list of available converters to a static method 2023-11-01 21:28:55 +01:00
datastreamconverter.cpp Convert fprintf(stderr, ...); exit(EXIT_FAILURE); to qFatal(...) 2023-10-30 12:43:14 +02:00
datastreamconverter.h Turn Converter::Direction into a QFlags enum 2023-09-08 18:17:37 +02:00
debugtextdumper.cpp Make Converter::saveFile() consistently error on unexpected options 2023-10-30 12:43:14 +02:00
debugtextdumper.h Turn Converter::Direction into a QFlags enum 2023-09-08 18:17:37 +02:00
jsonconverter.cpp Replace confusing member variable with a predicate 2023-11-01 21:28:55 +01:00
jsonconverter.h Turn Converter::Direction into a QFlags enum 2023-09-08 18:17:37 +02:00
main.cpp Break out the list of available converters to a static method 2023-11-01 21:28:55 +01:00
nullconverter.cpp Replace confusing member variable with a predicate 2023-11-01 21:28:55 +01:00
nullconverter.h Turn Converter::Direction into a QFlags enum 2023-09-08 18:17:37 +02:00
textconverter.cpp Convert fprintf(stderr, ...); exit(EXIT_FAILURE); to qFatal(...) 2023-10-30 12:43:14 +02:00
textconverter.h Turn Converter::Direction into a QFlags enum 2023-09-08 18:17:37 +02:00
variantorderedmap.h Split VariantOrderedMap out of Converter's header in example 2023-10-16 22:38:17 +02:00
xmlconverter.cpp Convert fprintf(stderr, ...); exit(EXIT_FAILURE); to qFatal(...) 2023-10-30 12:43:14 +02:00
xmlconverter.h Turn Converter::Direction into a QFlags enum 2023-09-08 18:17:37 +02:00