Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
d9577f0d
Commit
d9577f0d
authored
Jul 24, 2014
by
Fabio Bas
Browse files
Hide unused parameters in cockatrice/ to avoid warnings
parent
13bd35e0
Changes
5
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/dlg_edit_tokens.cpp
View file @
d9577f0d
...
...
@@ -113,7 +113,7 @@ DlgEditTokens::DlgEditTokens(CardDatabaseModel *_cardDatabaseModel, QWidget *par
setWindowTitle
(
tr
(
"Edit tokens"
));
}
void
DlgEditTokens
::
tokenSelectionChanged
(
const
QModelIndex
&
current
,
const
QModelIndex
&
previous
)
void
DlgEditTokens
::
tokenSelectionChanged
(
const
QModelIndex
&
current
,
const
QModelIndex
&
/*
previous
*/
)
{
const
QModelIndex
realIndex
=
cardDatabaseDisplayModel
->
mapToSource
(
current
);
CardInfo
*
cardInfo
=
current
.
row
()
>=
0
?
cardDatabaseModel
->
getCard
(
realIndex
.
row
())
:
cardDatabaseModel
->
getDatabase
()
->
getCard
();
...
...
cockatrice/src/filtertree.h
View file @
d9577f0d
...
...
@@ -18,10 +18,10 @@ public:
virtual
void
enable
()
{
enabled
=
true
;
nodeChanged
();
}
virtual
void
disable
()
{
enabled
=
false
;
nodeChanged
();
}
virtual
FilterTreeNode
*
parent
()
const
{
return
NULL
;
}
virtual
FilterTreeNode
*
nodeAt
(
int
i
)
const
{
return
NULL
;
}
virtual
void
deleteAt
(
int
i
)
{}
virtual
FilterTreeNode
*
nodeAt
(
int
/* i */
)
const
{
return
NULL
;
}
virtual
void
deleteAt
(
int
/* i */
)
{}
virtual
int
childCount
()
const
{
return
0
;
}
virtual
int
childIndex
(
const
FilterTreeNode
*
node
)
const
{
return
-
1
;
}
virtual
int
childIndex
(
const
FilterTreeNode
*
/*
node
*/
)
const
{
return
-
1
;
}
virtual
int
index
()
const
{
return
(
parent
()
!=
NULL
)
?
parent
()
->
childIndex
(
this
)
:
-
1
;
}
virtual
QString
text
()
const
{
return
QString
(
textCStr
());
}
virtual
bool
isLeaf
()
const
{
return
false
;
}
...
...
cockatrice/src/localserver.cpp
View file @
d9577f0d
...
...
@@ -33,7 +33,7 @@ ServerInfo_User LocalServer_DatabaseInterface::getUserData(const QString &name,
return
result
;
}
AuthenticationResult
LocalServer_DatabaseInterface
::
checkUserPassword
(
Server_ProtocolHandler
*
handler
,
const
QString
&
user
,
const
QString
&
password
,
QString
&
reasonStr
,
int
&
secondsLeft
)
AuthenticationResult
LocalServer_DatabaseInterface
::
checkUserPassword
(
Server_ProtocolHandler
*
/*
handler
*/
,
const
QString
&
/*
user
*/
,
const
QString
&
/*
password
*/
,
QString
&
/*
reasonStr
*/
,
int
&
/*
secondsLeft
*/
)
{
return
UnknownUser
;
}
cockatrice/src/replay_timeline_widget.cpp
View file @
d9577f0d
...
...
@@ -43,7 +43,7 @@ void ReplayTimelineWidget::setTimeline(const QList<int> &_replayTimeline)
update
();
}
void
ReplayTimelineWidget
::
paintEvent
(
QPaintEvent
*
event
)
void
ReplayTimelineWidget
::
paintEvent
(
QPaintEvent
*
/*
event
*/
)
{
QPainter
painter
(
this
);
painter
.
drawRect
(
0
,
0
,
width
()
-
1
,
height
()
-
1
);
...
...
cockatrice/src/tab_replays.cpp
View file @
d9577f0d
...
...
@@ -202,7 +202,7 @@ void TabReplays::actDownload()
client
->
sendCommand
(
pend
);
}
void
TabReplays
::
downloadFinished
(
const
Response
&
r
,
const
CommandContainer
&
commandContainer
,
const
QVariant
&
extraData
)
void
TabReplays
::
downloadFinished
(
const
Response
&
r
,
const
CommandContainer
&
/*
commandContainer
*/
,
const
QVariant
&
extraData
)
{
if
(
r
.
response_code
()
!=
Response
::
RespOk
)
return
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment