Skip to content

Commit

Permalink
Merge pull request xbmc#6189 from tobbi/cppcheck_perf_storage
Browse files Browse the repository at this point in the history
  • Loading branch information
jenkins4kodi committed Jan 22, 2015
2 parents 8e3fae6 + 986a9e1 commit d12581d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 14 deletions.
6 changes: 3 additions & 3 deletions xbmc/storage/AutorunMediaJob.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
#include "guilib/Key.h"
#include "utils/StringUtils.h"

CAutorunMediaJob::CAutorunMediaJob(const std::string &label, const std::string &path)
CAutorunMediaJob::CAutorunMediaJob(const std::string &label, const std::string &path):
m_path(path),
m_label(label)
{
m_label = label;
m_path = path;
}

bool CAutorunMediaJob::DoWork()
Expand Down
2 changes: 1 addition & 1 deletion xbmc/storage/MediaManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ bool CMediaManager::SaveSources()
TiXmlNode *pNetworkNode = pRoot->InsertEndChild(networkNode);
if (pNetworkNode)
{
for (vector<CNetworkLocation>::iterator it = m_locations.begin(); it != m_locations.end(); it++)
for (vector<CNetworkLocation>::iterator it = m_locations.begin(); it != m_locations.end(); ++it)
{
TiXmlElement locationNode("location");
locationNode.SetAttribute("id", (*it).id);
Expand Down
7 changes: 2 additions & 5 deletions xbmc/storage/linux/DeviceKitDisksProvider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,9 @@ void CDeviceKitDiskDeviceNewAPI::Update()
m_isRemovable = properties["DeviceIsRemovable"].asBoolean();
}

CDeviceKitDiskDevice::CDeviceKitDiskDevice(const char *DeviceKitUDI)
CDeviceKitDiskDevice::CDeviceKitDiskDevice(const char *DeviceKitUDI):
m_DeviceKitUDI(DeviceKitUDI)
{
m_DeviceKitUDI = DeviceKitUDI;
m_UDI = "";
m_MountPath = "";
m_FileSystem = "";
m_isMounted = false;
m_isMountedByUs = false;
m_isRemovable = false;
Expand Down
7 changes: 2 additions & 5 deletions xbmc/storage/linux/UDisksProvider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,9 @@
#include "utils/URIUtils.h"
#include "PosixMountProvider.h"

CUDiskDevice::CUDiskDevice(const char *DeviceKitUDI)
CUDiskDevice::CUDiskDevice(const char *DeviceKitUDI):
m_DeviceKitUDI(DeviceKitUDI)
{
m_DeviceKitUDI = DeviceKitUDI;
m_UDI = "";
m_MountPath = "";
m_FileSystem = "";
m_isMounted = false;
m_isMountedByUs = false;
m_isRemovable = false;
Expand Down

0 comments on commit d12581d

Please sign in to comment.