Skip to main content
summaryrefslogtreecommitdiffstats
path: root/qt
diff options
context:
space:
mode:
authorNathan Ridge2014-05-14 03:15:34 -0400
committerSergey Prigogin2014-05-14 12:27:57 -0400
commit6cbdabfbec623f01291a994f1bd76bbb9fc42248 (patch)
tree7974a58de56a1c07f220adf32d86aff48efdbf1f /qt
parentab5c43e46a3544d29a20907983acf446d69db0a6 (diff)
downloadorg.eclipse.cdt-6cbdabfbec623f01291a994f1bd76bbb9fc42248.tar.gz
org.eclipse.cdt-6cbdabfbec623f01291a994f1bd76bbb9fc42248.tar.xz
org.eclipse.cdt-6cbdabfbec623f01291a994f1bd76bbb9fc42248.zip
Bug 432701 - Move code that determines the value of an initializer to SemanticUtil
Change-Id: I0fcbad27155d875b420ce99cd9e9ba202448cc59 Signed-off-by: Nathan Ridge <zeratul976@hotmail.com> Reviewed-on: https://git.eclipse.org/r/26418 Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com> Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Diffstat (limited to 'qt')
-rw-r--r--qt/org.eclipse.cdt.qt.ui/src/org/eclipse/cdt/internal/qt/ui/assist/QPropertyAttributeProposal.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt/org.eclipse.cdt.qt.ui/src/org/eclipse/cdt/internal/qt/ui/assist/QPropertyAttributeProposal.java b/qt/org.eclipse.cdt.qt.ui/src/org/eclipse/cdt/internal/qt/ui/assist/QPropertyAttributeProposal.java
index be8ad1810c..8b7ed4a7b6 100644
--- a/qt/org.eclipse.cdt.qt.ui/src/org/eclipse/cdt/internal/qt/ui/assist/QPropertyAttributeProposal.java
+++ b/qt/org.eclipse.cdt.qt.ui/src/org/eclipse/cdt/internal/qt/ui/assist/QPropertyAttributeProposal.java
@@ -207,7 +207,7 @@ public class QPropertyAttributeProposal {
String defValue = null;
if (param instanceof CPPParameter) {
CPPParameter cppParam = (CPPParameter) param;
- IASTInitializer defaultValue = cppParam.getDefaultValue();
+ IASTInitializer defaultValue = cppParam.getInitializer();
if (defaultValue instanceof IASTEqualsInitializer) {
IASTInitializerClause clause = ((IASTEqualsInitializer) defaultValue).getInitializerClause();
defValue = clause.toString();

Back to the top