[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdevplatform/language/interfaces
From: David Nolden <david.nolden.kde () art-master ! de>
Date: 2008-12-15 4:03:16
Message-ID: 1229313796.820926.10531.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 897032 by zwabel:
Nobody likes references to temporaries! Make it stop crashing..
M +3 -3 iproblem.cpp
M +3 -3 iproblem.h
--- trunk/KDE/kdevplatform/language/interfaces/iproblem.cpp #897031:897032
@@ -40,7 +40,7 @@
return d_func()->url;
}
-const DocumentRange & Problem::finalLocation() const
+DocumentRange Problem::finalLocation() const
{
return DocumentRange(d_func()->url.str(), range().textRange());
}
@@ -72,7 +72,7 @@
// d_func()->locationStack = locationStack;
}
-const QString & Problem::description() const
+QString Problem::description() const
{
return d_func()->description.str();
}
@@ -82,7 +82,7 @@
d_func_dynamic()->description = ReferenceCountedIndexedString(description);
}
-const QString & Problem::explanation() const
+QString Problem::explanation() const
{
return d_func()->explanation.str();
}
--- trunk/KDE/kdevplatform/language/interfaces/iproblem.h #897031:897032
@@ -90,19 +90,19 @@
/**
* Location where this problem occured
* */
- const DocumentRange & finalLocation() const;
+ DocumentRange finalLocation() const;
void setFinalLocation(const DocumentRange & location);
/**
* A brief description of the problem.
*/
- const QString& description() const;
+ QString description() const;
void setDescription(const QString& description);
/**
* A (detailed) explanation of why the problem occurred.
*/
- const QString& explanation() const;
+ QString explanation() const;
void setExplanation(const QString& explanation);
enum {
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic