diff options
| author | Christian Stenger <christian.stenger@qt.io> | 2021-08-17 08:49:57 +0200 |
|---|---|---|
| committer | Christian Stenger <christian.stenger@qt.io> | 2021-08-19 04:39:05 +0000 |
| commit | 28d2674b54d51f48950576f6748f2f38a4cacbbb (patch) | |
| tree | 450b3bb42c78faecde637ddb4bdc6fa351d7e2d7 /src/plugins/cpptools/cppfilesettingspage.cpp | |
| parent | fd0f6fd5e666aa05650a13feaf0fc3439b1a22f0 (diff) | |
| download | qt-creator-28d2674b54d51f48950576f6748f2f38a4cacbbb.tar.gz | |
Utils: Adjust FilePath::relativePath()
When using the same path for the anchor and the relative path
we end up in an empty path which is conceptually wrong.
Especially when passing such a result directly without further
checking may lead to bad issues.
Return a path containing just the '.' (dot) instead.
Change-Id: I86e1ab91e6610831fc05bd81776d278e9fe10105
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: Jochen Becher <jochen_becher@gmx.de>
Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/cpptools/cppfilesettingspage.cpp')
0 files changed, 0 insertions, 0 deletions
