Skip to content

Commit 7055590

Browse files
[Janitor mode] Fix whitespace
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@21971 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent 4234f3a commit 7055590

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

Compiler/Template/CodegenCpp.tpl

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6693,17 +6693,17 @@ template expTypeFlag(DAE.Type ty, Integer flag)
66936693
case T_ARRAY(dims=dims) then'BaseArray<<%expTypeShort(ty)%>>&'
66946694
else expTypeFlag(ty, 9)
66956695
end match
6696-
6696+
66976697
case 9 then
6698-
// we want the "modelica type"
6699-
match ty case T_COMPLEX(complexClassType=EXTERNAL_OBJ(__)) then
6700-
'<%expTypeShort(ty)%>'
6701-
else match ty case T_COMPLEX(complexClassType=RECORD(path=rname)) then
6702-
'<%underscorePath(rname)%>Type &'
6703-
else match ty case T_COMPLEX(__) then
6704-
'<%underscorePath(ClassInf.getStateName(complexClassType))%> &'
6705-
else
6706-
'<%expTypeShort(ty)%>'
6698+
// we want the "modelica type"
6699+
match ty case T_COMPLEX(complexClassType=EXTERNAL_OBJ(__)) then
6700+
'<%expTypeShort(ty)%>'
6701+
else match ty case T_COMPLEX(complexClassType=RECORD(path=rname)) then
6702+
'<%underscorePath(rname)%>Type &'
6703+
else match ty case T_COMPLEX(__) then
6704+
'<%underscorePath(ClassInf.getStateName(complexClassType))%> &'
6705+
else
6706+
'<%expTypeShort(ty)%>'
67076707

67086708

67096709
end expTypeFlag;
@@ -8542,7 +8542,7 @@ template daeExpAsub(Exp inExp, Context context, Text &preExp /*BUFP*/,
85428542
case ASUB(exp=ASUB(__)) then
85438543
error(sourceInfo(),'Nested array subscripting *should* have been handled by the routine creating the asub, but for some reason it was not: <%printExpStr(exp)%>')
85448544

8545-
8545+
85468546
// Faster asub: Do not construct a whole new array just to access one subscript
85478547
case ASUB(exp=exp as ARRAY(scalar=true), sub={idx}) then
85488548
let res = tempDecl(expTypeFromExpModelica(exp),&varDecls)

0 commit comments

Comments
 (0)