mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-10 22:15:34 +08:00
Style
This commit is contained in:
@@ -22,7 +22,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#elif defined(Q_OS_WIN32)
|
#elif defined(Q_OS_WIN32)
|
||||||
#include <windows.h>
|
#include <Windows.h>
|
||||||
#include <io.h>
|
#include <io.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -308,7 +308,7 @@ namespace BlackMisc
|
|||||||
{
|
{
|
||||||
for (auto i = m_cslPackages.cbegin(); i != m_cslPackages.cend(); ++i)
|
for (auto i = m_cslPackages.cbegin(); i != m_cslPackages.cend(); ++i)
|
||||||
{
|
{
|
||||||
if (strncmp(qPrintable(i->name), qPrintable(ioPath), i->name.size()) == 0)
|
if (strncmp(qPrintable(i->name), qPrintable(ioPath), static_cast<size_t>(i->name.size())) == 0)
|
||||||
{
|
{
|
||||||
ioPath.remove(0, i->name.size());
|
ioPath.remove(0, i->name.size());
|
||||||
ioPath.insert(0, i->path);
|
ioPath.insert(0, i->path);
|
||||||
|
|||||||
Reference in New Issue
Block a user