summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin T. H. Sandsmark <martin.sandsmark@kde.org>2016-07-24 20:39:45 (GMT)
committerMartin T. H. Sandsmark <martin.sandsmark@kde.org>2016-07-24 20:39:45 (GMT)
commit962af72cc1bf1234d274779c02bbb4e6d9ebc757 (patch)
tree7a37797d6080041a6e0da49cb139ced982108787
parentd9a31fa02ad92c663b3c5bd0fc5be38b09bc761f (diff)
Silence some warnings
-rw-r--r--ui/formwidgets.cpp3
-rw-r--r--ui/pageview.cpp2
-rw-r--r--ui/presentationwidget.cpp2
3 files changed, 7 insertions, 0 deletions
diff --git a/ui/formwidgets.cpp b/ui/formwidgets.cpp
index ebf1ef4..7e68b5c 100644
--- a/ui/formwidgets.cpp
+++ b/ui/formwidgets.cpp
@@ -503,6 +503,7 @@ void FormLineEdit::slotHandleTextChangedByUndoRedo( int pageNumber,
int cursorPos,
int anchorPos )
{
+ Q_UNUSED(pageNumber);
if ( textForm != m_form || contents == text() )
{
return;
@@ -596,6 +597,7 @@ void TextAreaEdit::slotHandleTextChangedByUndoRedo( int pageNumber,
int cursorPos,
int anchorPos )
{
+ Q_UNUSED(pageNumber);
if ( textForm != m_form )
{
return;
@@ -741,6 +743,7 @@ void FileEdit::slotHandleFileChangedByUndoRedo( int pageNumber,
int cursorPos,
int anchorPos )
{
+ Q_UNUSED(pageNumber);
if ( form != m_form || contents == text() )
{
return;
diff --git a/ui/pageview.cpp b/ui/pageview.cpp
index 7c15fb0..4ea717a 100644
--- a/ui/pageview.cpp
+++ b/ui/pageview.cpp
@@ -5292,6 +5292,8 @@ void PageView::slotProcessRenditionAction( const Okular::RenditionAction *action
case Okular::RenditionAction::Resume:
vw->play();
break;
+ default:
+ return;
};
}
diff --git a/ui/presentationwidget.cpp b/ui/presentationwidget.cpp
index 4746f28..a7cfb0a 100644
--- a/ui/presentationwidget.cpp
+++ b/ui/presentationwidget.cpp
@@ -2304,6 +2304,8 @@ void PresentationWidget::slotProcessRenditionAction( const Okular::RenditionActi
case Okular::RenditionAction::Resume:
vw->play();
break;
+ default:
+ return;
};
}