projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
modernize: Use braced-init list when returning types
[quassel.git]
/
src
/
client
/
buffermodel.cpp
diff --git
a/src/client/buffermodel.cpp
b/src/client/buffermodel.cpp
index
2900403
..
e5011f2
100644
(file)
--- a/
src/client/buffermodel.cpp
+++ b/
src/client/buffermodel.cpp
@@
-1,5
+1,5
@@
/***************************************************************************
/***************************************************************************
- * Copyright (C) 2005-201
3
by the Quassel Project *
+ * Copyright (C) 2005-201
8
by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
@@
-70,7
+70,7
@@
void BufferModel::networkConnectionChanged(Network::ConnectionState state)
if (currentIndex().isValid())
return;
{
if (currentIndex().isValid())
return;
{
-
Network
*net = qobject_cast<Network *>(sender());
+
auto
*net = qobject_cast<Network *>(sender());
Q_ASSERT(net);
setCurrentIndex(mapFromSource(Client::networkModel()->networkIndex(net->networkId())));
}
Q_ASSERT(net);
setCurrentIndex(mapFromSource(Client::networkModel()->networkIndex(net->networkId())));
}