diff options
author | Anton Leherbauer | 2007-01-10 12:17:54 +0000 |
---|---|---|
committer | Anton Leherbauer | 2007-01-10 12:17:54 +0000 |
commit | b27b8766ae6d873110bb462edc9ecd07e7623a73 (patch) | |
tree | 7f515f850a6c7a23281a0733f9007eab9dadb8a2 /core/org.eclipse.cdt.ui.tests/resources/formatter/templates/After.cpp | |
parent | 095910e7bf02a5ca876cc4b144b7879874285e18 (diff) | |
download | org.eclipse.cdt-b27b8766ae6d873110bb462edc9ecd07e7623a73.tar.gz org.eclipse.cdt-b27b8766ae6d873110bb462edc9ecd07e7623a73.tar.xz org.eclipse.cdt-b27b8766ae6d873110bb462edc9ecd07e7623a73.zip |
Fix for Bug 169382 - default formatter can't format "struct xxx get(){}"
Diffstat (limited to 'core/org.eclipse.cdt.ui.tests/resources/formatter/templates/After.cpp')
-rw-r--r-- | core/org.eclipse.cdt.ui.tests/resources/formatter/templates/After.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/core/org.eclipse.cdt.ui.tests/resources/formatter/templates/After.cpp b/core/org.eclipse.cdt.ui.tests/resources/formatter/templates/After.cpp index fdfe7fe0d5a..2792a676739 100644 --- a/core/org.eclipse.cdt.ui.tests/resources/formatter/templates/After.cpp +++ b/core/org.eclipse.cdt.ui.tests/resources/formatter/templates/After.cpp @@ -12,16 +12,16 @@ class Foo { // TEMPLATE_STRUCT template<class Key, class Value, class SortAlgorithm=DefaultSort> struct Map { - Key * keys; - Value * values; - SortAlgorithm * sortAlgorithm; + Key* keys; + Value* values; + SortAlgorithm* sortAlgorithm; Map(); }; // TEMPLATE_CLASS template<class T> class nonVector { private: - T * head; + T* head; public: nonVector() { @@ -30,7 +30,7 @@ public: int length() { return 1; } - const T &first() const; + const T& first() const; }; // TEMPLATE_UNION @@ -52,7 +52,7 @@ class TemplateContainer { }; // TEMPLATE_FUNCTION -template<class T> const T &nonVector<T>::first() const { +template<class T> const T& nonVector<T>::first() const { return *head; } |