mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
Apply clang-tidy's performance-unnecessary-value-param, performance-for-
range-copy git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5448 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -37,7 +37,7 @@ FileElementCollectionItem::FileElementCollectionItem()
|
||||
* @param path
|
||||
* @return true if path exist.
|
||||
*/
|
||||
bool FileElementCollectionItem::setRootPath(QString path, bool set_data, bool hide_element)
|
||||
bool FileElementCollectionItem::setRootPath(const QString& path, bool set_data, bool hide_element)
|
||||
{
|
||||
QDir dir(path);
|
||||
if (dir.exists()) {
|
||||
@@ -278,7 +278,7 @@ void FileElementCollectionItem::setUpIcon()
|
||||
* For create a new file collection see setRootPath.
|
||||
* @param path_name
|
||||
*/
|
||||
void FileElementCollectionItem::setPathName(QString path_name, bool set_data, bool hide_element)
|
||||
void FileElementCollectionItem::setPathName(const QString& path_name, bool set_data, bool hide_element)
|
||||
{
|
||||
m_path = path_name;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user