diff options
author | OBATA Akio <[email protected]> | 2020-07-23 17:53:20 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2020-07-23 19:20:30 +0900 |
commit | 4ed0a29d338d99971be9eaa9b41db41e02452c15 (patch) | |
tree | 990fb9621f59d4265a2993110ce597a48e647e8a /qmake/generators/unix/unixmake.cpp | |
parent | ff30fd5afbde9ca8e32d4a0d221a39580b55df0d (diff) | |
download | tqt3-4ed0a29d338d99971be9eaa9b41db41e02452c15.tar.gz tqt3-4ed0a29d338d99971be9eaa9b41db41e02452c15.zip |
Fix to detect file conponent from path properly in Makefile generator
It should be either `path.right(path.length() - sep_pos - 1)` or
`path.mid(sep_pos + 1)`.
Signed-off-by: OBATA Akio <[email protected]>
(cherry picked from commit 5c270c3e26e74609a1821ddd3bb17566ccc53396)
Diffstat (limited to 'qmake/generators/unix/unixmake.cpp')
-rw-r--r-- | qmake/generators/unix/unixmake.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qmake/generators/unix/unixmake.cpp b/qmake/generators/unix/unixmake.cpp index d796e4d7b..2cb2ec9d4 100644 --- a/qmake/generators/unix/unixmake.cpp +++ b/qmake/generators/unix/unixmake.cpp @@ -763,7 +763,7 @@ UnixMakefileGenerator::defaultInstall(const TQString &t) TQString src_lt = var("QMAKE_ORIG_TARGET"); int slsh = src_lt.findRev(Option::dir_sep); if(slsh != -1) - src_lt = src_lt.right(src_lt.length() - slsh); + src_lt = src_lt.right(src_lt.length() - slsh - 1); int dot = src_lt.find('.'); if(dot != -1) src_lt = src_lt.left(dot); @@ -786,7 +786,7 @@ UnixMakefileGenerator::defaultInstall(const TQString &t) TQString src_pc = var("QMAKE_ORIG_TARGET"); int slsh = src_pc.findRev(Option::dir_sep); if(slsh != -1) - src_pc = src_pc.right(src_pc.length() - slsh); + src_pc = src_pc.right(src_pc.length() - slsh - 1); int dot = src_pc.find('.'); if(dot != -1) src_pc = src_pc.left(dot); |