Changeset View
Changeset View
Standalone View
Standalone View
src/core/kconfigini.cpp
Show First 20 Lines • Show All 721 Lines • ▼ Show 20 Line(s) | 652 | { | |||
---|---|---|---|---|---|
722 | } | 722 | } | ||
723 | *data = 0; | 723 | *data = 0; | ||
724 | result.resize(data - start); | 724 | result.resize(data - start); | ||
725 | 725 | | |||
726 | // Protect trailing space | 726 | // Protect trailing space | ||
727 | if (result.endsWith(' ') && type != GroupString) { | 727 | if (result.endsWith(' ') && type != GroupString) { | ||
728 | result.replace(result.length() - 1, 1, "\\s"); | 728 | result.replace(result.length() - 1, 1, "\\s"); | ||
729 | } | 729 | } | ||
730 | result.squeeze(); | | |||
731 | 730 | | |||
732 | return result; | 731 | return result; | ||
733 | } | 732 | } | ||
734 | 733 | | |||
735 | char KConfigIniBackend::charFromHex(const char *str, const QFile &file, int line) | 734 | char KConfigIniBackend::charFromHex(const char *str, const QFile &file, int line) | ||
736 | { | 735 | { | ||
737 | unsigned char ret = 0; | 736 | unsigned char ret = 0; | ||
738 | for (int i = 0; i < 2; i++) { | 737 | for (int i = 0; i < 2; i++) { | ||
▲ Show 20 Lines • Show All 81 Lines • Show Last 20 Lines |