Laurent Montel
486e05b270
If include is define in .h remove it if it's defined in .cpp too (scripted)
5 years ago
Albert Astals Cid
19d98d6a74
Run clang-format
...
find . \( -name "*.cpp" -or -name "*.h" -or -name "*.c" -or -name "*.cc" \) -exec clang-format -i {} \;
If you reached this file doing a git blame, please see README.clang-format (added 2 commits in the future of this one)
6 years ago
Albert Astals Cid
2ed253a540
Include fixes
6 years ago
Albert Astals Cid
a4e044e6d6
tweak spacing to make clang-10 happier
...
The whole file is a mess, but in particular this was making a warning so
let's fix it
6 years ago
Albert Astals Cid
3720833be4
Enable clazy qstring-allocations
6 years ago
Albert Astals Cid
9a32bd354d
Enable clazy raw-environment-function
6 years ago
Albert Astals Cid
dcf8f79481
Enable clazy isempty-vs-count and qhash-with-char-pointer-key
6 years ago
Albert Astals Cid
6d0d61c2ad
Enable clazy copyable-polymorphic
6 years ago
Albert Astals Cid
93540ac16d
Enable most of clazy level2
6 years ago
Albert Astals Cid
968e9d6073
Enable clazy old-style-connect
6 years ago
Albert Astals Cid
0a60ab54c4
Enable clazy qstring-ref
6 years ago
Albert Astals Cid
e2a1705703
CI: Enable clazy connect-not-normalized
6 years ago
Albert Astals Cid
96f00a4d29
CI: Enable clazy qstring-arg check
6 years ago
Albert Astals Cid
5ecbb51f77
Enable modernize-use-nullptr
6 years ago
Ahmad Samir
4a4456abd7
Port QRegExp to QRegularExpression in a couple of locations
...
Some instances of QRegExp are still left:
generators/mobipocket and generators/epub
6 years ago
Albert Astals Cid
2da1cd736a
CI: Enable clang-tidy modernize-loop-convert
6 years ago
Albert Astals Cid
2e46cf22f5
CI: enable clang tidy performance checks
6 years ago
Albert Astals Cid
b001ea2019
CI: Enable a bunch of bugprone- clang-tidy warnings
6 years ago
Albert Astals Cid
0a2287be19
CI: Enable two readability clang-tidy checks
...
Use jq to filter compile_commands.json to not include the compilation of
autogenerated files, we don't want to check those
Also filter out the synctex folder, since that is imported code
6 years ago
Ahmad Samir
54494cc3d4
[generators/*] Replace deprecated foreach with range-for
6 years ago
Albert Astals Cid
78cf6bd910
CI: enable more modernize checks
...
Since unfortunately some of the autogenerated includes don't pass the
checks we do a trick of building out of source and then specifying the
.*/okular/.* path as the only includes we care about
6 years ago
Laurent Montel
8beef33c05
Port some deprecated methods
7 years ago
Laurent Montel
5a3a49c310
Port qSort to std::sort
7 years ago
Yuri Chornoivan
5478b2ec92
Fix minor typos
7 years ago
Laurent Montel
6f9913802c
Remove qt prefix
7 years ago
Albert Astals Cid
ec692e459b
Remove unused variables
7 years ago
Yuri Chornoivan
c04ca1fa96
Fix minor EBN issues
8 years ago
Milian Wolff
ec795473fa
Make compile with strict iterators
9 years ago
Milian Wolff
9d0cc7528f
Make compile with strict iterators
9 years ago
Gilbert Assaf
6b27aa53fa
CHM Generator Lib Update
...
This patch updates our copy of the chm lib from kchmviewer. The lib files itself are an unmodified copy from kchmviewer 7.7, only our generator needed some changes. In contrast to kchmviewer we still use khtml and therefor still need msits.
REVIEW: 130226
9 years ago
Gilbert Assaf
e876640c21
Bug 262265 chmlib should not send qFatal if encoding could not be guessed
...
Okular sends a 'qFatal()', if no encoding could be guessed. This will also create a core dump crashing Okular and all open document in this instance.
Bugs closed: 262265
Reviewed at https://git.reviewboard.kde.org/r/130106/
9 years ago
Albert Astals Cid
6874317c8a
Fix crash on CHM files that use "plain English" LCID
...
BUGS: 376936
9 years ago
Albert Vaca
c71f308252
Fixes suggested by Clazy
10 years ago
Martin T. H. Sandsmark
b512e668e0
chm, dvi: Fix build with compiler flags after removing kdelibs4support
...
After removing kdelibs4support, these flags are enabled:
-DQT_USE_FAST_OPERATOR_PLUS -DQT_NO_CAST_TO_ASCII
-DQT_NO_CAST_FROM_ASCII -DQT_NO_URL_CAST_FROM_STRING
-DQT_NO_CAST_FROM_BYTEARRAY
So wrap naked string and character literals in QStringLiteral,
QLatin1Char and QLatin1String as appropriate.
To more easily see the changes, use «git show --color-words».
Thank $DEITY for vim macros.
10 years ago
Montel Laurent
466eb79615
Use QStringLiteral
11 years ago
Vishesh Handa
2bfa3ccff0
Port the CHM generator
...
Would be nice if I had some CHM files to test this on.
12 years ago
Yuri Chornoivan
3b73357d2f
Fix some typos found by Krazy2
13 years ago
Laurent Montel
975de758ba
Now it compiles with enable-final
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=908743
17 years ago
Laurent Montel
c2fc9836e8
Fix iterator
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=882957
18 years ago
Frederik Schwarzer
62668cdb2c
let me introduce: typo of the year "the the"
...
mostly seen as
"the the" -> "the"
"the the" -> "to the"
and in its best case
"a the the" -> "" :)
svn path=/trunk/KDE/kdegraphics/okular/; revision=864814
18 years ago
Pino Toscano
8a3dda1142
fix the portability fixes:
...
- include stdint.h to use the uint*_t types
- do not delcare static an extern-C function
svn path=/trunk/KDE/kdegraphics/okular/; revision=799329
18 years ago
Adriaan de Groot
59479a6169
Quiet complaints that a function with C++ linkage is being passed to a C function expecting a function pointer with C linkage.
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=799311
18 years ago
Adriaan de Groot
23e114f2a3
Missed one set of u_int -> uint; the latter is available on more platforms.
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=799309
18 years ago
Adriaan de Groot
837bb55306
u_int types are less portable than uint types; if this gives problems we can use quint as the most general solution.
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=799304
18 years ago
Adriaan de Groot
608c465480
Correct peculiar typedef construct
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=799241
18 years ago
Laurent Montel
3f43482199
Make dashboard happy
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=774833
18 years ago
Pino Toscano
c77c26bcfe
extra ';'
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=774797
18 years ago
Albert Astals Cid
aab9224955
resync with kchmviewer
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=773800
18 years ago
Albert Astals Cid
d60620d33d
fix FSF address
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=770378
18 years ago
Albert Astals Cid
2e29cd8ffa
port to new kchmviewer code, this brings us to almost no local patch on extern code (we have 1 bugfix + making kio-msits work that i'll notify upstream)
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=770371
18 years ago