mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
Strip spaces around :: in C++ code (Qt client)
This commit is contained in:
12
qt/utils.cc
12
qt/utils.cc
@@ -40,7 +40,7 @@ extern QPixmap qt_pixmapFromWinHICON(HICON icon);
|
||||
#endif
|
||||
|
||||
QString
|
||||
Utils :: remoteFileChooser (QWidget * parent, const QString& title, const QString& myPath, bool dir, bool local)
|
||||
Utils::remoteFileChooser (QWidget * parent, const QString& title, const QString& myPath, bool dir, bool local)
|
||||
{
|
||||
QString path;
|
||||
|
||||
@@ -60,7 +60,7 @@ Utils :: remoteFileChooser (QWidget * parent, const QString& title, const QStrin
|
||||
}
|
||||
|
||||
void
|
||||
Utils :: toStderr (const QString& str)
|
||||
Utils::toStderr (const QString& str)
|
||||
{
|
||||
std::cerr << qPrintable(str) << std::endl;
|
||||
}
|
||||
@@ -107,7 +107,7 @@ namespace
|
||||
#endif
|
||||
|
||||
QIcon
|
||||
Utils :: guessMimeIcon (const QString& filename)
|
||||
Utils::guessMimeIcon (const QString& filename)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
QIcon icon;
|
||||
@@ -133,7 +133,7 @@ Utils :: guessMimeIcon (const QString& filename)
|
||||
|
||||
if (fileIcons[0].isNull ())
|
||||
{
|
||||
fallback = QApplication::style()->standardIcon (QStyle :: SP_FileIcon);
|
||||
fallback = QApplication::style()->standardIcon (QStyle::SP_FileIcon);
|
||||
|
||||
suffixes[DISK] << QString::fromLatin1("iso");
|
||||
fileIcons[DISK]= QIcon::fromTheme (QString::fromLatin1("media-optical"), fallback);
|
||||
@@ -188,7 +188,7 @@ Utils :: guessMimeIcon (const QString& filename)
|
||||
}
|
||||
|
||||
bool
|
||||
Utils :: isValidUtf8 (const char *s)
|
||||
Utils::isValidUtf8 (const char * s)
|
||||
{
|
||||
int n; // number of bytes in a UTF-8 sequence
|
||||
|
||||
@@ -211,7 +211,7 @@ Utils :: isValidUtf8 (const char *s)
|
||||
}
|
||||
|
||||
QString
|
||||
Utils :: removeTrailingDirSeparator (const QString& path)
|
||||
Utils::removeTrailingDirSeparator (const QString& path)
|
||||
{
|
||||
return path.endsWith (QDir::separator ())
|
||||
? path.left (path.length()-1)
|
||||
|
||||
Reference in New Issue
Block a user