Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
JuK
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Multimedia
JuK
Commits
ff147582
Commit
ff147582
authored
Aug 25, 2017
by
Michael Pyne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove KSharedPtr.
parent
016c25a5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
playlistitem.h
playlistitem.h
+7
-6
scrobbler.cpp
scrobbler.cpp
+0
-1
No files found.
playlistitem.h
View file @
ff147582
...
...
@@ -14,12 +14,12 @@
* this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef PLAYLISTITEM_H
#define PLAYLISTITEM_H
#ifndef
JUK_
PLAYLISTITEM_H
#define
JUK_
PLAYLISTITEM_H
#include <ksharedptr.h>
#include <kdebug.h>
#include <QExplicitlySharedDataPointer>
#include <QVector>
#include <QPixmap>
#include <QList>
...
...
@@ -192,7 +192,7 @@ protected:
* Shared data between all PlaylistItems from the same track (incl. the CollectionItem
* representing said track.
*/
struct
Data
:
public
KShared
struct
Data
:
public
QSharedData
{
Data
()
{}
Data
(
const
QFileInfo
&
info
,
const
QString
&
path
)
:
fileHandle
(
info
,
path
)
{}
...
...
@@ -203,10 +203,11 @@ protected:
QVector
<
int
>
cachedWidths
;
};
KSharedPtr
<
Data
>
data
()
const
{
return
d
;
}
using
DataPtr
=
QExplicitlySharedDataPointer
<
Data
>
;
DataPtr
data
()
const
{
return
d
;
}
private:
KSharedPtr
<
Data
>
d
;
DataPtr
d
;
void
setup
(
CollectionListItem
*
item
);
...
...
scrobbler.cpp
View file @
ff147582
...
...
@@ -29,7 +29,6 @@
#include <kconfiggroup.h>
#include <KDebug>
#include <KSharedConfig>
#include <KSharedPtr>
#include "tag.h"
...
...
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