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
KOrganizer
Commits
de11c043
Commit
de11c043
authored
Apr 03, 2021
by
Glen Ditchfield
🐛
Browse files
Fix some compiler warnings
parent
9555f346
Pipeline
#56423
passed with stage
in 18 minutes and 4 seconds
Changes
8
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/calendarview.cpp
View file @
de11c043
...
...
@@ -623,7 +623,7 @@ void CalendarView::slotModifyFinished(int changeId, const Akonadi::Item &item, A
KCalendarCore
::
Journal
::
Ptr
journal
=
CalendarSupport
::
journal
(
journalItem
);
KCalendarCore
::
Journal
::
Ptr
oldJournal
(
journal
->
clone
());
journal
->
setDescription
(
journal
->
description
().
append
(
QLatin1Char
(
'\n'
)
+
description
));
mChanger
->
modifyIncidence
(
journalItem
,
oldJournal
,
this
);
(
void
)
mChanger
->
modifyIncidence
(
journalItem
,
oldJournal
,
this
);
}
}
}
...
...
@@ -843,7 +843,7 @@ void CalendarView::edit_paste()
}
pastedEvent
->
setRelatedTo
(
QString
());
mChanger
->
createIncidence
(
KCalendarCore
::
Event
::
Ptr
(
pastedEvent
->
clone
()),
Akonadi
::
Collection
(),
this
);
(
void
)
mChanger
->
createIncidence
(
KCalendarCore
::
Event
::
Ptr
(
pastedEvent
->
clone
()),
Akonadi
::
Collection
(),
this
);
}
else
if
((
*
it
)
->
type
()
==
KCalendarCore
::
Incidence
::
TypeTodo
)
{
KCalendarCore
::
Todo
::
Ptr
pastedTodo
=
(
*
it
).
staticCast
<
KCalendarCore
::
Todo
>
();
Akonadi
::
Item
_selectedTodoItem
=
selectedTodo
();
...
...
@@ -856,10 +856,10 @@ void CalendarView::edit_paste()
}
// When pasting multiple incidences, don't ask which collection to use, for each one
mChanger
->
createIncidence
(
KCalendarCore
::
Todo
::
Ptr
(
pastedTodo
->
clone
()),
Akonadi
::
Collection
(),
this
);
(
void
)
mChanger
->
createIncidence
(
KCalendarCore
::
Todo
::
Ptr
(
pastedTodo
->
clone
()),
Akonadi
::
Collection
(),
this
);
}
else
if
((
*
it
)
->
type
()
==
KCalendarCore
::
Incidence
::
TypeJournal
)
{
// When pasting multiple incidences, don't ask which collection to use, for each one
mChanger
->
createIncidence
(
KCalendarCore
::
Incidence
::
Ptr
((
*
it
)
->
clone
()),
Akonadi
::
Collection
(),
this
);
(
void
)
mChanger
->
createIncidence
(
KCalendarCore
::
Incidence
::
Ptr
((
*
it
)
->
clone
()),
Akonadi
::
Collection
(),
this
);
}
}
}
...
...
@@ -1328,7 +1328,7 @@ void CalendarView::toggleAlarm(const Akonadi::Item &item)
CalendarSupport
::
createAlarmReminder
(
alm
,
incidence
->
type
());
}
mChanger
->
startAtomicOperation
(
i18n
(
"Toggle Reminder"
));
mChanger
->
modifyIncidence
(
item
,
oldincidence
,
this
);
(
void
)
mChanger
->
modifyIncidence
(
item
,
oldincidence
,
this
);
mChanger
->
endAtomicOperation
();
}
...
...
@@ -1356,7 +1356,7 @@ void CalendarView::toggleTodoCompleted(const Akonadi::Item &todoItem)
}
mChanger
->
startAtomicOperation
(
i18n
(
"Toggle To-do Completed"
));
mChanger
->
modifyIncidence
(
todoItem
,
oldtodo
,
this
);
(
void
)
mChanger
->
modifyIncidence
(
todoItem
,
oldtodo
,
this
);
mChanger
->
endAtomicOperation
();
}
...
...
@@ -1565,7 +1565,7 @@ void CalendarView::dissociateOccurrence(const Akonadi::Item &item, const QDate &
qCDebug
(
KORGANIZER_LOG
)
<<
"create exception: "
<<
occurrenceDate
;
KCalendarCore
::
Incidence
::
Ptr
newInc
(
KCalendarCore
::
Calendar
::
createException
(
incidence
,
occurrenceDate
,
thisAndFuture
));
if
(
newInc
)
{
mChanger
->
createIncidence
(
newInc
,
item
.
parentCollection
(),
this
);
(
void
)
mChanger
->
createIncidence
(
newInc
,
item
.
parentCollection
(),
this
);
}
else
{
if
(
thisAndFuture
)
{
KMessageBox
::
sorry
(
this
,
i18n
(
"Dissociating the future occurrences failed."
),
i18n
(
"Dissociating Failed"
));
...
...
@@ -2459,7 +2459,7 @@ void CalendarView::addIncidenceOn(const Akonadi::Item &itemadd, const QDate &dt)
todo
->
setDtDue
(
due
);
}
mChanger
->
createIncidence
(
incidence
,
Akonadi
::
Collection
(),
this
);
(
void
)
mChanger
->
createIncidence
(
incidence
,
Akonadi
::
Collection
(),
this
);
}
void
CalendarView
::
moveIncidenceTo
(
const
Akonadi
::
Item
&
itemmove
,
QDate
dt
)
...
...
@@ -2495,7 +2495,7 @@ void CalendarView::moveIncidenceTo(const Akonadi::Item &itemmove, QDate dt)
todo
->
setDtDue
(
due
);
}
mChanger
->
modifyIncidence
(
itemmove
,
oldIncidence
,
this
);
(
void
)
mChanger
->
modifyIncidence
(
itemmove
,
oldIncidence
,
this
);
}
void
CalendarView
::
resourcesChanged
()
...
...
src/kocore.h
View file @
de11c043
...
...
@@ -41,7 +41,7 @@ public:
KOrg
::
Part
*
loadPart
(
const
KService
::
Ptr
&
,
KOrg
::
MainWindow
*
parent
);
KOrg
::
Part
*
loadPart
(
const
QString
&
,
KOrg
::
MainWindow
*
parent
);
Q_REQUIRED_RESULT
EventViews
::
CalendarDecoration
::
Decoration
::
List
loadCalendarDecorations
();
EventViews
::
CalendarDecoration
::
Decoration
::
List
loadCalendarDecorations
();
Q_REQUIRED_RESULT
KOrg
::
Part
::
List
loadParts
(
KOrg
::
MainWindow
*
parent
);
void
addXMLGUIClient
(
QWidget
*
,
KXMLGUIClient
*
guiclient
);
...
...
src/kontactplugin/korganizer/apptsummarywidget.cpp
View file @
de11c043
...
...
@@ -231,7 +231,7 @@ void ApptSummaryWidget::viewEvent(const QString &uid)
void
ApptSummaryWidget
::
removeEvent
(
const
Akonadi
::
Item
&
item
)
{
mChanger
->
deleteIncidence
(
item
);
(
void
)
mChanger
->
deleteIncidence
(
item
);
}
void
ApptSummaryWidget
::
popupMenu
(
const
QString
&
uid
)
...
...
src/kontactplugin/korganizer/journalplugin.cpp
View file @
de11c043
...
...
@@ -87,7 +87,7 @@ QStringList JournalPlugin::invisibleToolbarActions() const
OrgKdeKorganizerCalendarInterface
*
JournalPlugin
::
interface
()
{
if
(
!
mIface
)
{
part
();
(
void
)
part
();
}
Q_ASSERT
(
mIface
);
return
mIface
;
...
...
src/kontactplugin/korganizer/korganizerplugin.cpp
View file @
de11c043
...
...
@@ -92,7 +92,7 @@ void KOrganizerPlugin::select()
OrgKdeKorganizerCalendarInterface
*
KOrganizerPlugin
::
interface
()
{
if
(
!
mIface
)
{
part
();
(
void
)
part
();
}
Q_ASSERT
(
mIface
);
return
mIface
;
...
...
src/kontactplugin/korganizer/todoplugin.cpp
View file @
de11c043
...
...
@@ -99,7 +99,7 @@ QStringList TodoPlugin::invisibleToolbarActions() const
OrgKdeKorganizerCalendarInterface
*
TodoPlugin
::
interface
()
{
if
(
!
mIface
)
{
part
();
(
void
)
part
();
}
Q_ASSERT
(
mIface
);
return
mIface
;
...
...
src/kontactplugin/korganizer/todosummarywidget.cpp
View file @
de11c043
...
...
@@ -297,7 +297,7 @@ void TodoSummaryWidget::viewTodo(const QString &uid)
void
TodoSummaryWidget
::
removeTodo
(
const
Akonadi
::
Item
&
item
)
{
mChanger
->
deleteIncidence
(
item
);
(
void
)
mChanger
->
deleteIncidence
(
item
);
}
void
TodoSummaryWidget
::
completeTodo
(
Akonadi
::
Item
::
Id
id
)
...
...
@@ -309,7 +309,7 @@ void TodoSummaryWidget::completeTodo(Akonadi::Item::Id id)
if
(
!
todo
->
isReadOnly
())
{
KCalendarCore
::
Todo
::
Ptr
oldTodo
(
todo
->
clone
());
todo
->
setCompleted
(
QDateTime
::
currentDateTime
());
mChanger
->
modifyIncidence
(
todoItem
,
oldTodo
);
(
void
)
mChanger
->
modifyIncidence
(
todoItem
,
oldTodo
);
updateView
();
}
}
...
...
src/korgmigrateapplication.cpp
View file @
de11c043
...
...
@@ -23,7 +23,7 @@ void KOrgMigrateApplication::migrate()
// Migrate folders and files.
if
(
mMigrator
.
checkIfNecessary
())
{
mMigrator
.
start
();
(
void
)
mMigrator
.
start
();
}
}
...
...
Glen Ditchfield
🐛
@gditchfield
mentioned in merge request
!24 (merged)
·
Apr 15, 2021
mentioned in merge request
!24 (merged)
mentioned in merge request !24
Toggle commit list
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