Hi,
since I don't trust myself I just want ensure that:
class A
{
public:
static void save(QString& str)
{ /* huge and complex save function */ }
};
class A
{
public:
static void save(QString& str)
{ /* huge and complex save function */ }
};
To copy to clipboard, switch view to plain text mode
is regarding to performance issues equal:
class A {};
class AHelper
{
static void saveHelper(const A& a, QString&str); // which "equals" a.save();
};
class A {};
class AHelper
{
static void saveHelper(const A& a, QString&str); // which "equals" a.save();
};
To copy to clipboard, switch view to plain text mode
assuming you have thousands of A's. (The point is, I want to hold A as small as possible.)
Bookmarks