|
From: <cn...@us...> - 2025-10-15 23:38:13
|
Revision: 1611
http://sourceforge.net/p/seq/svn/1611
Author: cn187
Date: 2025-10-15 23:38:11 +0000 (Wed, 15 Oct 2025)
Log Message:
-----------
Fix misc compiler warnings
Modified Paths:
--------------
showeq/branches/cn187_devel/src/guildlist.cpp
showeq/branches/cn187_devel/src/guildlist.h
showeq/branches/cn187_devel/src/point.h
Modified: showeq/branches/cn187_devel/src/guildlist.cpp
===================================================================
--- showeq/branches/cn187_devel/src/guildlist.cpp 2025-10-15 23:38:01 UTC (rev 1610)
+++ showeq/branches/cn187_devel/src/guildlist.cpp 2025-10-15 23:38:11 UTC (rev 1611)
@@ -73,7 +73,7 @@
}
-bool GuildListItem::operator<(const GuildListItem& other) const
+bool GuildListItem::operator<(const QTreeWidgetItem& other) const
{
int column = treeWidget() ? treeWidget()->sortColumn() : 0;
@@ -84,7 +84,11 @@
other.data(column, Qt::DisplayRole).value<int>();
case 6: // last on
- return guildMember()->lastOn() < other.guildMember()->lastOn();
+ if (auto gm = dynamic_cast<const GuildListItem*>(&other))
+ return guildMember()->lastOn() < gm->guildMember()->lastOn();
+ else
+ return data(column, Qt::DisplayRole).value<int>() <
+ other.data(column, Qt::DisplayRole).value<int>();
case 0: // name
case 2: // class
Modified: showeq/branches/cn187_devel/src/guildlist.h
===================================================================
--- showeq/branches/cn187_devel/src/guildlist.h 2025-10-15 23:38:01 UTC (rev 1610)
+++ showeq/branches/cn187_devel/src/guildlist.h 2025-10-15 23:38:11 UTC (rev 1611)
@@ -72,7 +72,7 @@
const GuildShell* guildShell);
virtual ~GuildListItem();
- bool operator<(const GuildListItem& other) const;
+ bool operator<(const QTreeWidgetItem& other) const;
void update(const GuildShell* guildShell);
Modified: showeq/branches/cn187_devel/src/point.h
===================================================================
--- showeq/branches/cn187_devel/src/point.h 2025-10-15 23:38:01 UTC (rev 1610)
+++ showeq/branches/cn187_devel/src/point.h 2025-10-15 23:38:11 UTC (rev 1611)
@@ -55,7 +55,7 @@
Point3D(const QPoint& point);
// virtual destructor
- virtual ~Point3D();
+ virtual ~Point3D() = default;
// operators
Point3D& operator=(const Point3D& point);
@@ -153,10 +153,10 @@
}
// obligatory virtual destructor
-template <class _T> inline
-Point3D<_T>::~Point3D<_T>()
-{
-}
+//template <class _T> inline
+//Point3D<_T>::~Point3D<_T>()
+//{
+//}
// assignment operator
template <class _T> inline
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|