Tomasz Paweł Gajc
82a919fe20
Fix build with LLVM/clang
...
Fix error:
/usr/bin/clang++ -DCOLORSCHEMES_DIR=\"/usr/share/qtermwidget5/color-schemes\" -DHAVE_POSIX_OPENPT -DHAVE_SYS_TIME_H -DHAVE_UPDWTMPX -DKB_LAYOUT_DIR=\"/usr/share/qtermwidget5/kb-layouts\" -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_FOREACH -DQT_NO_URL_CAST_FROM_STRING -DQT_USE_QSTRINGBUILDER -DQT_WIDGETS_LIB -DTRANSLATIONS_DIR=\"/usr/share/qtermwidget5/translations\" -Dqtermwidget5_EXPORTS -I/builddir/build/BUILD/qtermwidget-0.14.1/build -I/builddir/build/BUILD/qtermwidget-0.14.1 -I/builddir/build/BUILD/qtermwidget-0.14.1/lib -I/builddir/build/BUILD/qtermwidget-0.14.1/build/lib -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/./mkspecs/linux-clang -Os -fomit-frame-pointer -g1 -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -m64 -mtune=generic -flto -fno-exceptions -Wall -Wextra -Wchar-subscripts -Wno-long-long -Wpointer-arith -Wundef -Wformat-security -Wnon-virtual-dtor -Woverloaded-virtual -Wpedantic -Wno-gnu-zero-variadic-macro-arguments -Os -fomit-frame-pointer -g1 -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -m64 -mtune=generic -flto -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -std=gnu++14 -o CMakeFiles/qtermwidget5.dir/lib/TerminalCharacterDecoder.cpp.o -c /builddir/build/BUILD/qtermwidget-0.14.1/lib/TerminalCharacterDecoder.cpp
make[2]: Leaving directory '/builddir/build/BUILD/qtermwidget-0.14.1/build'
BUILDSTDERR: /builddir/build/BUILD/qtermwidget-0.14.1/lib/TerminalCharacterDecoder.cpp:205:18: error: no member named 'iswspace' in namespace 'std'; did you mean 'isspace'?
BUILDSTDERR: if (std::iswspace(ch))
BUILDSTDERR: ~~~~~^~~~~~~~
BUILDSTDERR: isspace
BUILDSTDERR: /usr/bin/../lib64/gcc/x86_64-openmandriva-linux-gnu/10.0.0/../../../../include/c++/10.0.0/cctype:72:11: note: 'isspace' declared here
BUILDSTDERR: using ::isspace;
BUILDSTDERR: ^
BUILDSTDERR: 1 error generated.
BUILDSTDERR: make[2]: *** [CMakeFiles/qtermwidget5.dir/build.make:442: CMakeFiles/qtermwidget5.dir/lib/TerminalCharacterDecoder.cpp.o] Error 1
BUILDSTDERR: make[2]: *** Waiting for unfinished jobs....
2020-03-10 18:40:29 +08:00
Luís Pereira
b8906f6b0c
Port towards C++11 nullptr
2019-04-13 15:49:15 +02:00
Luís Pereira
c6880070e9
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.
2018-08-05 22:09:57 +08:00
Chih-Hsuan Yen
51dad30fc0
Use wstring in TerminalCharacterDecoder for UCS-4 compatibility
...
PlainTextDecoder is used in at least clipboard data handling
HTMLDecoder is not used for now
2018-02-28 10:49:41 +01:00
Jerome Leclanche
72ffc262eb
Clean up trailing whitespaces
2015-07-09 20:22:48 +02:00
Petr Vanek
5d3ef34cc2
fixed #11 compile against Qt 5 (Qt4 and Qt5 supported and waguely tested)
2014-04-11 21:28:52 +02:00
Petr Vanek
6ad5d7070a
merge changes from the experimental "bundle" repository
2011-06-22 13:12:21 +02:00
Petr Vanek
4183368397
code reformatted after resync
2010-10-25 16:34:14 +02:00
Petr Vanek
b2449cc578
display stuff synced from konsole again to improve color scheme handling
2010-10-25 16:27:34 +02:00
Petr Vanek
57fd23bf39
K&R formatting
2010-10-01 16:08:14 +02:00
Petr Vanek
88b5a11bb4
merge with qscite
2010-10-01 15:54:31 +02:00