~lubuntu-dev/lxde/libsysstat

« back to all changes in this revision

Viewing changes to CMakeLists.txt

  • Committer: Alf Gaida
  • Author(s): Luís Pereira
  • Date: 2018-07-14 08:58:48 UTC
  • Revision ID: git-v1:9f9f025022ce0951bc7d496faccc27bb4949f1d2
Don't use automatic string conversions

* Disables automatic conversions from 8-bit strings (char *) to unicode
  QStrings.
* Disables automatic conversion from QString to 8-bit strings (char *).
* Disables automatic conversions from QByteArray to const char * or const
  void *.
* Disables automatic conversions from QString (or char *) to QUrl.
* Use QStringBuilder for more efficient string creation.

It make us aware of string and encoding conversions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
94
94
        "MINOR_VERSION=${MINOR_VERSION}"
95
95
        "PATCH_VERSION=${PATCH_VERSION}"
96
96
        "SYSSTAT_LIBRARY"
 
97
        "QT_USE_QSTRINGBUILDER"
 
98
        "QT_NO_CAST_FROM_ASCII"
 
99
        "QT_NO_CAST_TO_ASCII"
 
100
        "QT_NO_URL_CAST_FROM_STRING"
 
101
        "QT_NO_CAST_FROM_BYTEARRAY"
97
102
)
98
103
 
99
104
target_include_directories(${SYSSTAT_LIBRARY_NAME}