/
uis
/
git
/
x
/
uis
/
git
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use SWAP macro
[git/git.git]
/
strbuf.h
diff --git
a/strbuf.h
b/strbuf.h
index
2262b12
..
cf1b540
100644
(file)
--- a/
strbuf.h
+++ b/
strbuf.h
@@
-109,9
+109,7
@@
extern void strbuf_attach(struct strbuf *, void *, size_t, size_t);
*/
static inline void strbuf_swap(struct strbuf *a, struct strbuf *b)
{
*/
static inline void strbuf_swap(struct strbuf *a, struct strbuf *b)
{
- struct strbuf tmp = *a;
- *a = *b;
- *b = tmp;
+ SWAP(*a, *b);
}
}