examples/before/example_classes.h
author William Roberts <williamr@symbian.org>
Fri, 26 Mar 2010 16:25:15 +0000
changeset 1 fd0863fd52e5
parent 0 fe474e3b08fb
child 5 29cf076edbda
permissions -rw-r--r--
Add script to summarise GCC errors (and warnings) from the "*_failures.html" logs Add script to grab the various *_failures.html files based on the HTML page for a "list of gcce package builds" Add the result of applying the summarising script to the original gcce platform build
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
fe474e3b08fb Created the examples directory, containing components called "before" and "after"
William Roberts <williamr@symbian.org>
parents:
diff changeset
     1
// Copyright (c) 2010 Symbian Foundation Ltd.
fe474e3b08fb Created the examples directory, containing components called "before" and "after"
William Roberts <williamr@symbian.org>
parents:
diff changeset
     2
// All rights reserved.
fe474e3b08fb Created the examples directory, containing components called "before" and "after"
William Roberts <williamr@symbian.org>
parents:
diff changeset
     3
// This component and the accompanying materials are made available
fe474e3b08fb Created the examples directory, containing components called "before" and "after"
William Roberts <williamr@symbian.org>
parents:
diff changeset
     4
// under the terms of the License "Eclipse Public License v1.0"
fe474e3b08fb Created the examples directory, containing components called "before" and "after"
William Roberts <williamr@symbian.org>
parents:
diff changeset
     5
// which accompanies this distribution, and is available
fe474e3b08fb Created the examples directory, containing components called "before" and "after"
William Roberts <williamr@symbian.org>
parents:
diff changeset
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
fe474e3b08fb Created the examples directory, containing components called "before" and "after"
William Roberts <williamr@symbian.org>
parents:
diff changeset
     7
//
fe474e3b08fb Created the examples directory, containing components called "before" and "after"
William Roberts <williamr@symbian.org>
parents:
diff changeset
     8
// Initial Contributors:
fe474e3b08fb Created the examples directory, containing components called "before" and "after"
William Roberts <williamr@symbian.org>
parents:
diff changeset
     9
// Symbian Foundation - Initial contribution
fe474e3b08fb Created the examples directory, containing components called "before" and "after"
William Roberts <williamr@symbian.org>
parents:
diff changeset
    10
// 
fe474e3b08fb Created the examples directory, containing components called "before" and "after"
William Roberts <williamr@symbian.org>
parents:
diff changeset
    11
// Description:
fe474e3b08fb Created the examples directory, containing components called "before" and "after"
William Roberts <williamr@symbian.org>
parents:
diff changeset
    12
// Examples of things which GCC does not like in the Symbian codebase.
fe474e3b08fb Created the examples directory, containing components called "before" and "after"
William Roberts <williamr@symbian.org>
parents:
diff changeset
    13
fe474e3b08fb Created the examples directory, containing components called "before" and "after"
William Roberts <williamr@symbian.org>
parents:
diff changeset
    14
// Various problems with classes
fe474e3b08fb Created the examples directory, containing components called "before" and "after"
William Roberts <williamr@symbian.org>
parents:
diff changeset
    15
fe474e3b08fb Created the examples directory, containing components called "before" and "after"
William Roberts <williamr@symbian.org>
parents:
diff changeset
    16
class TClass1
fe474e3b08fb Created the examples directory, containing components called "before" and "after"
William Roberts <williamr@symbian.org>
parents:
diff changeset
    17
	{
fe474e3b08fb Created the examples directory, containing components called "before" and "after"
William Roberts <williamr@symbian.org>
parents:
diff changeset
    18
	public:
fe474e3b08fb Created the examples directory, containing components called "before" and "after"
William Roberts <williamr@symbian.org>
parents:
diff changeset
    19
	TClass1(int a, int b);
fe474e3b08fb Created the examples directory, containing components called "before" and "after"
William Roberts <williamr@symbian.org>
parents:
diff changeset
    20
	int TClass1::Average();			// Error! Member function name should not be qualified
fe474e3b08fb Created the examples directory, containing components called "before" and "after"
William Roberts <williamr@symbian.org>
parents:
diff changeset
    21
	
fe474e3b08fb Created the examples directory, containing components called "before" and "after"
William Roberts <williamr@symbian.org>
parents:
diff changeset
    22
	private:
fe474e3b08fb Created the examples directory, containing components called "before" and "after"
William Roberts <williamr@symbian.org>
parents:
diff changeset
    23
	int iA;
fe474e3b08fb Created the examples directory, containing components called "before" and "after"
William Roberts <williamr@symbian.org>
parents:
diff changeset
    24
	int iB;
fe474e3b08fb Created the examples directory, containing components called "before" and "after"
William Roberts <williamr@symbian.org>
parents:
diff changeset
    25
	};