Commit graph

7 commits

Author SHA1 Message Date
Ivailo Monev
e2a0be91ae kdecore: KTemporaryFile::filePath() optimization
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-23 13:00:14 +03:00
Ivailo Monev
49904fd247 kdecore: KTemporaryFile optimization
assuming that default constructed KComponentData is invalid and the
temporary directory is the same as that returned by the global
KStandardDirs isntance the private data pointer is redundant

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-04 09:37:45 +03:00
Ivailo Monev
95a8d172be kdecore: search backwards for the template and stop at directory separator in KTemporaryFile::filePath()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-01 00:51:55 +02:00
Ivailo Monev
49371e1370 kdecore: avoid temporary in KTemporaryFile constructor
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-01 00:51:05 +02:00
Ivailo Monev
b287467137 kdecore: do not prepend the temporary directory and main component name if template is absolute path from KTemporaryFile::filePath()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-23 18:05:15 +03:00
Ivailo Monev
ce5ff1c1c8 kdecore: implement temporary filepath generator
using it means no disk I/O to generate temporary filepaths in some cases

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-07 05:17:49 +03:00
Ivailo Monev
814163a8dc initial import 2014-11-13 01:04:59 +02:00