Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
PIM
KNotes
Commits
bce3d213
Commit
bce3d213
authored
Sep 10, 2020
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modernize code
parent
2d7505cd
Pipeline
#33776
passed with stage
in 22 minutes and 37 seconds
Changes
10
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
7 additions
and
18 deletions
+7
-18
notesagent/notesagent.cpp
notesagent/notesagent.cpp
+0
-1
notesagent/notesagent.h
notesagent/notesagent.h
+1
-1
notesagent/notesmanager.cpp
notesagent/notesmanager.cpp
+0
-2
noteshared/src/job/createnewnotejob.cpp
noteshared/src/job/createnewnotejob.cpp
+1
-1
noteshared/src/network/notesnetworkreceiver.cpp
noteshared/src/network/notesnetworkreceiver.cpp
+3
-4
noteshared/src/network/notesnetworksender.h
noteshared/src/network/notesnetworksender.h
+1
-1
src/apps/application.cpp
src/apps/application.cpp
+0
-1
src/apps/knotesakonaditray.h
src/apps/knotesakonaditray.h
+1
-1
src/notes/knote.cpp
src/notes/knote.cpp
+0
-5
src/print/knoteprintselectednotesdialog.cpp
src/print/knoteprintselectednotesdialog.cpp
+0
-1
No files found.
notesagent/notesagent.cpp
View file @
bce3d213
...
...
@@ -20,7 +20,6 @@
NotesAgent
::
NotesAgent
(
const
QString
&
id
)
:
Akonadi
::
AgentBase
(
id
)
,
mAgentInitialized
(
false
)
{
Kdelibs4ConfigMigrator
migrate
(
QStringLiteral
(
"notesagent"
));
migrate
.
setConfigFiles
(
QStringList
()
...
...
notesagent/notesagent.h
View file @
bce3d213
...
...
@@ -46,7 +46,7 @@ private Q_SLOTS:
void
slotStartAgent
();
private:
bool
mAgentInitialized
;
bool
mAgentInitialized
=
false
;
NotesManager
*
mNotesManager
=
nullptr
;
};
...
...
notesagent/notesmanager.cpp
View file @
bce3d213
...
...
@@ -34,8 +34,6 @@
NotesManager
::
NotesManager
(
QObject
*
parent
)
:
QObject
(
parent
)
,
mListener
(
nullptr
)
,
mCheckAlarm
(
nullptr
)
{
mSession
=
new
Akonadi
::
Session
(
"KNotes Session"
,
this
);
mNoteRecorder
=
new
NoteShared
::
NotesChangeRecorder
(
this
);
...
...
noteshared/src/job/createnewnotejob.cpp
View file @
bce3d213
...
...
@@ -38,7 +38,7 @@ public:
QString
mTitle
;
QString
mText
;
bool
mRichText
=
false
;
QWidget
*
mWidget
=
nullptr
;
QWidget
*
const
mWidget
;
};
CreateNewNoteJob
::
CreateNewNoteJob
(
QObject
*
parent
,
QWidget
*
widget
)
...
...
noteshared/src/network/notesnetworkreceiver.cpp
View file @
bce3d213
...
...
@@ -35,8 +35,7 @@ class NoteShared::NotesNetworkReceiverPrivate
{
public:
NotesNetworkReceiverPrivate
(
QTcpSocket
*
s
)
:
m_timer
(
nullptr
)
,
m_buffer
(
new
QByteArray
())
:
m_buffer
(
new
QByteArray
())
,
m_sock
(
s
)
{
}
...
...
@@ -49,8 +48,8 @@ public:
QTimer
*
m_timer
=
nullptr
;
// to avoid memory and connection floods
QByteArray
*
m_buffer
=
nullptr
;
QTcpSocket
*
m_sock
=
nullptr
;
QByteArray
*
const
m_buffer
;
QTcpSocket
*
const
m_sock
;
QString
m_titleAddon
;
};
...
...
noteshared/src/network/notesnetworksender.h
View file @
bce3d213
...
...
@@ -31,7 +31,7 @@ protected Q_SLOTS:
void
slotWritten
(
qint64
);
private:
QTcpSocket
*
m_socket
=
nullptr
;
QTcpSocket
*
const
m_socket
;
QByteArray
m_note
;
QByteArray
m_title
;
QByteArray
m_sender
;
...
...
src/apps/application.cpp
View file @
bce3d213
...
...
@@ -13,7 +13,6 @@
Application
::
Application
(
int
&
argc
,
char
**
argv
[])
:
KontactInterface
::
PimUniqueApplication
(
argc
,
argv
)
,
mMainWindow
(
nullptr
)
{
}
...
...
src/apps/knotesakonaditray.h
View file @
bce3d213
...
...
@@ -19,7 +19,7 @@ public:
private:
void
slotGeneralPaletteChanged
();
QIcon
mIcon
;
const
QIcon
mIcon
;
QColor
mTextColor
;
};
...
...
src/notes/knote.cpp
View file @
bce3d213
...
...
@@ -65,11 +65,6 @@
KNote
::
KNote
(
const
QDomDocument
&
buildDoc
,
const
Akonadi
::
Item
&
item
,
bool
allowAkonadiSearchDebug
,
QWidget
*
parent
)
:
QFrame
(
parent
,
Qt
::
FramelessWindowHint
)
,
mItem
(
item
)
,
m_label
(
nullptr
)
,
m_grip
(
nullptr
)
,
m_button
(
nullptr
)
,
m_tool
(
nullptr
)
,
m_editor
(
nullptr
)
,
m_kwinConf
(
KSharedConfig
::
openConfig
(
QStringLiteral
(
"kwinrc"
)))
,
mDisplayAttribute
(
new
KNoteDisplaySettings
)
,
mAllowDebugAkonadiSearch
(
allowAkonadiSearchDebug
)
...
...
src/print/knoteprintselectednotesdialog.cpp
View file @
bce3d213
...
...
@@ -23,7 +23,6 @@
KNotePrintSelectedNotesDialog
::
KNotePrintSelectedNotesDialog
(
QWidget
*
parent
)
:
QDialog
(
parent
)
,
mPreview
(
false
)
{
setWindowTitle
(
i18nc
(
"@title:window"
,
"Select notes"
));
QVBoxLayout
*
mainLayout
=
new
QVBoxLayout
(
this
);
...
...
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