Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
8898b347
Commit
8898b347
authored
Jul 09, 2014
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code formatting.
parent
1617f15b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
+6
-7
typeinfo.h
include/core/typeinfo.h
+5
-6
module_editor_frame.h
pcbnew/module_editor_frame.h
+1
-1
No files found.
include/core/typeinfo.h
View file @
8898b347
...
...
@@ -148,15 +148,15 @@ struct remove_pointer<T*>
* @return true, if aObject type equals T.
*/
template
<
class
T
,
class
I
>
bool
IsA
(
const
I
*
aObject
)
bool
IsA
(
const
I
*
aObject
)
{
return
aObject
&&
remove_pointer
<
T
>::
type
::
ClassOf
(
aObject
);
return
aObject
&&
remove_pointer
<
T
>::
type
::
ClassOf
(
aObject
);
}
template
<
class
T
,
class
I
>
bool
IsA
(
const
I
&
aObject
)
bool
IsA
(
const
I
&
aObject
)
{
return
remove_pointer
<
T
>::
type
::
ClassOf
(
&
aObject
);
return
remove_pointer
<
T
>::
type
::
ClassOf
(
&
aObject
);
}
/**
...
...
@@ -168,7 +168,7 @@ bool IsA(const I& aObject)
* @return down-casted object or NULL if type doesn't match Casted.
*/
template
<
class
Casted
,
class
From
>
Casted
dyn_cast
(
From
aObject
)
Casted
dyn_cast
(
From
aObject
)
{
if
(
remove_pointer
<
Casted
>::
type
::
ClassOf
(
aObject
)
)
return
static_cast
<
Casted
>
(
aObject
);
...
...
@@ -177,4 +177,3 @@ Casted dyn_cast(From aObject)
}
#endif // __KICAD_TYPEINFO_H
pcbnew/module_editor_frame.h
View file @
8898b347
...
...
@@ -161,7 +161,7 @@ public:
* and prepare, if needed the refresh of the 3D frame showing the footprint
* do not forget to call the basic OnModify function to update auxiliary info
*/
virtual
void
OnModify
(
);
virtual
void
OnModify
();
/**
* Function ToPrinter
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment