QString net = buffer->networkName();
TreeItem *networkItem;
- if(not(networkItem = rootItem->childById(qHash(net)))) {
+ if(!(networkItem = rootItem->childById(qHash(net)))) {
int nextRow = rootItem->childCount();
networkItem = new NetworkTreeItem(net, rootItem);
NetworkTreeItem *networkItem = static_cast<NetworkTreeItem*>(networkItemIndex.internalPointer());
TreeItem *bufferItem;
- if(not(bufferItem = networkItem->childById(buffer->bufferInfo().uid()))) {
+ if(!(bufferItem = networkItem->childById(buffer->bufferInfo().uid()))) {
int nextRow = networkItem->childCount();
bufferItem = new BufferTreeItem(buffer, networkItem);
int numChannelsWaiting = 0;
foreach(NetworkInfo *net, networkInfos()) {
- if(not net->initialized())
+ if(! net->initialized())
numNetsWaiting++;
numIrcUsers += net->ircUsers().count();
foreach(IrcUser *user, net->ircUsers()) {
- if(not user->initialized())
+ if(! user->initialized())
numIrcUsersWaiting++;
}
numChannels += net->ircChannels().count();
foreach(IrcChannel *channel, net->ircChannels()) {
- if(not channel->initialized())
+ if(! channel->initialized())
numChannelsWaiting++;
}
}
QVariant TreeItem::data(int column, int role) const {
- if(role == Qt::DisplayRole and column < itemData.count())
+ if(role == Qt::DisplayRole && column < itemData.count())
return itemData[column];
else
return QVariant();
uint editingDistance(const QString &s1, const QString &s2) {
uint n = s1.size()+1;
uint m = s2.size()+1;
- uint matrix[n][m];
+ //uint matrix[n][m];
+ QVector< QVector< uint > >matrix(n,QVector<uint>(m,0));
for(uint i = 0; i < n; i++)
matrix[i][0] = i;
}
void TabCompleter::complete() {
- if (not enabled) {
+ if (! enabled) {
buildCompletionList();
enabled = true;
}