Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
Akregator
Commits
200c3528
Commit
200c3528
authored
Oct 02, 2020
by
Laurent Montel
😁
Browse files
Fix some cppcheck
parent
15b4c727
Pipeline
#36185
passed with stage
in 17 minutes and 2 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/articlemodel.cpp
View file @
200c3528
...
...
@@ -42,8 +42,8 @@ static QString stripHtml(const QString &html)
}
ArticleModel
::
ArticleModel
(
const
QVector
<
Article
>
&
articles
,
QObject
*
parent
)
:
QAbstractTableModel
(
parent
)
,
m_articles
(
articles
)
{
m_articles
=
articles
;
const
int
articlesCount
(
articles
.
count
());
m_titleCache
.
resize
(
articlesCount
);
for
(
int
i
=
0
;
i
<
articlesCount
;
++
i
)
{
...
...
src/articleviewerwidget.cpp
View file @
200c3528
...
...
@@ -334,7 +334,7 @@ void ArticleViewerWidget::slotArticlesListed(KJob *job)
m_articles
=
m_listJob
->
articles
();
std
::
sort
(
m_articles
.
begin
(),
m_articles
.
end
());
if
(
node
&&
!
m_articles
.
isEmpty
())
{
if
(
!
m_articles
.
isEmpty
())
{
m_link
=
m_articles
.
first
().
link
();
}
else
{
m_link
=
QUrl
();
...
...
src/frame/frame.cpp
View file @
200c3528
...
...
@@ -19,11 +19,6 @@ Frame::Frame(QWidget *parent)
:
QWidget
(
parent
)
{
m_title
=
i18n
(
"Untitled"
);
m_state
=
Idle
;
m_progress
=
-
1
;
m_progressItem
=
nullptr
;
m_isRemovable
=
true
;
m_loading
=
false
;
m_id
=
m_idCounter
++
;
}
...
...
src/frame/frame.h
View file @
200c3528
...
...
@@ -119,12 +119,12 @@ protected:
QIcon
m_icon
;
QString
m_title
;
QString
m_caption
;
State
m_state
;
int
m_progress
;
State
m_state
=
Idle
;
int
m_progress
=
-
1
;
QString
m_statusText
;
QString
m_progressId
;
KPIM
::
ProgressItem
*
m_progressItem
=
nullptr
;
bool
m_isRemovable
=
fals
e
;
bool
m_isRemovable
=
tru
e
;
bool
m_loading
=
false
;
int
m_id
;
static
int
m_idCounter
;
...
...
src/selectioncontroller.cpp
View file @
200c3528
...
...
@@ -227,9 +227,7 @@ void SelectionController::articleHeadersAvailable(KJob *job)
disconnect
(
m_articleLister
->
articleSelectionModel
(),
&
QItemSelectionModel
::
selectionChanged
,
this
,
&
SelectionController
::
articleSelectionChanged
);
connect
(
m_articleLister
->
articleSelectionModel
(),
&
QItemSelectionModel
::
selectionChanged
,
this
,
&
SelectionController
::
articleSelectionChanged
);
if
(
node
)
{
m_articleLister
->
setScrollBarPositions
(
node
->
listViewScrollBarPositions
());
}
m_articleLister
->
setScrollBarPositions
(
node
->
listViewScrollBarPositions
());
}
void
SelectionController
::
subscriptionDataChanged
(
const
QModelIndex
&
topLeft
,
const
QModelIndex
&
bottomRight
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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