git.stg.codes
/
stg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c798b51
)
Теперь PRIV при конструировании ADMIN_CONF передается по ссылке (ранее
author
Maxim Mamontov
<faust@gts.dp.ua>
Tue, 7 Dec 2010 15:08:01 +0000
(17:08 +0200)
committer
Maxim Mamontov
<faust@gts.dp.ua>
Tue, 7 Dec 2010 15:08:01 +0000
(17:08 +0200)
был пропущен оператор ссылки и он передавался по значению).
include/admin_conf.h
patch
|
blob
|
history
diff --git
a/include/admin_conf.h
b/include/admin_conf.h
index 88eebdc3ccabc994b0eec101e96b6189c6bed0b1..32012f347dcb391c2d14ef9ea55384a848931039 100644
(file)
--- a/
include/admin_conf.h
+++ b/
include/admin_conf.h
@@
-59,7
+59,7
@@
struct ADMIN_CONF
login(rvalue.login),
password(rvalue.password)
{}
- ADMIN_CONF(const PRIV pr, const std::string & l, const std::string & p)
+ ADMIN_CONF(const PRIV
&
pr, const std::string & l, const std::string & p)
: priv(pr),
login(l),
password(p)