OSDN Git Service
(root)
/
winmerge-jp
/
winmerge-jp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
44c638b
)
DirItem.cpp: Reuse TFile instance
author
Takashi Sawanaka
<sdottaka@users.sourceforge.net>
Sun, 10 Mar 2019 13:06:34 +0000
(22:06 +0900)
committer
Takashi Sawanaka
<sdottaka@users.sourceforge.net>
Sun, 10 Mar 2019 13:06:34 +0000
(22:06 +0900)
Src/DirItem.cpp
patch
|
blob
|
history
diff --git
a/Src/DirItem.cpp
b/Src/DirItem.cpp
index
f9a6546
..
62f18a3
100644
(file)
--- a/
Src/DirItem.cpp
+++ b/
Src/DirItem.cpp
@@
-103,7
+103,7
@@
bool DirItem::Update(const String &sFilePath)
if (!file.isDirectory())
size = file.getSize();
- flags.attributes = GetFileAttributes(
TFile(sFilePath)
.wpath().c_str());
+ flags.attributes = GetFileAttributes(
file
.wpath().c_str());
retVal = true;
}