Kacper Michajłow
ccb59fbad3
Suppress C4267 conversion warnings ( #13307 )
...
- warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
Caused by mismatch between size_type of std and Qt containers. It is safe to cast to int as all of those containers hold low number of objects.
4 years ago
Chocobo1
498da509db
Use Qt provided forward declaration header
4 years ago
Chocobo1
648d44d9b9
Reduce padding in structure
...
Log::Msg originally takes 32 bytes, now shrinks to 24 bytes.
Log::Peer originally takes 40 bytes, now shrinks to 32 bytes.
5 years ago
jagannatharjun
fd89717330
Convert the Log widget to use custom View/Model
...
Co-authored-by: sledgehammer999 <hammered999@gmail.com>
5 years ago
NotTsunami
6748e8d787
Remove redundant null checks
...
Attempting to delete a null pointer is a noop in C++.
Closes #2864 .
[1] https://isocpp.org/wiki/faq/freestore-mgmt#delete-handles-null
5 years ago
Chocobo1
de7d62c128
Clean up code
5 years ago
Chocobo1
103e2b9398
Use non-recursive mutex
...
The related classes doesn't really need recursive mutex so drop it. And
if it is really required it usually indicates bad design and we should
avoid it anyway.
5 years ago
Chocobo1
04fd6e9d04
Avoid performance penalty when logger is full
6 years ago
thalieht
70f1537d9f
Add const to almost all remaining vars and arguments that qualify
6 years ago
thalieht
8c944bd4e1
Avoid repeating the return type
6 years ago
Chocobo1
f789df7edf
Add license header
6 years ago
thalieht
20ca90800d
Fix coding style
7 years ago
thalieht
3e4099fe5b
Replace the zeroing of pointers with nullptr
7 years ago
sledgehammer999
fd7e69e1e0
Add helper function for logging messages.
8 years ago
Chocobo1
87384ca2a2
Replace Utils::String::toHtmlEscaped() by QString::.toHtmlEscaped()
8 years ago
Chocobo1
6ca3e4f094
Add Utils::String::toHtmlEscaped
8 years ago
Vladimir Golovnev (Glassez)
9bdd26de43
Simplify Log::Msg and Log::Peer
...
Also fixes some unitialized scalar field bugs.
9 years ago
Vladimir Golovnev (Glassez)
9db93e5d8f
Rename Core to Base ( Closes #3733 ).
9 years ago
Vladimir Golovnev (Glassez)
e72cc4eaf9
Drop libtorrent 0.16.x support.
10 years ago
Vladimir Golovnev (Glassez)
d16d1fdb3a
Redesign main core classes.
10 years ago
Vladimir Golovnev (Glassez)
ff9a281b72
Change project directory structure.
...
Change project directory structure according to application structure.
Change 'nox' configuration option to something more meaningful 'nogui'.
Rename 'Icons' folder to 'icons' (similar to other folders).
Partially add 'nowebui' option support.
Remove QConf project file.
10 years ago
sledgehammer999
1504bbfe43
Logger base class.
10 years ago