mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-25 03:12:53 +00:00
34 lines
397 B
Text
34 lines
397 B
Text
![]() |
Coding style for the document view part:
|
||
|
|
||
|
// kate: space-indent on; indent-width 4; tab-width 4; replace-tabs on
|
||
|
|
||
|
namespace foospace
|
||
|
{
|
||
|
class Bar
|
||
|
{
|
||
|
public:
|
||
|
int foo();
|
||
|
private:
|
||
|
int m_foo;
|
||
|
}
|
||
|
;
|
||
|
int Bar::foo()
|
||
|
{
|
||
|
switch (x)
|
||
|
{
|
||
|
case 1:
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
if (isBar)
|
||
|
{
|
||
|
bar();
|
||
|
return m_foo + 1;
|
||
|
}
|
||
|
else
|
||
|
return 0;
|
||
|
}
|
||
|
}
|
||
|
|