summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Language.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Language.hs b/Language.hs
index e7ef163..b2e250c 100644
--- a/Language.hs
+++ b/Language.hs
@@ -231,7 +231,7 @@ cppType aliasMap = \case
231 Map k v -> "std::map<" ++ cppType aliasMap k ++ ", " ++ cppType aliasMap v ++ ">" 231 Map k v -> "std::map<" ++ cppType aliasMap k ++ ", " ++ cppType aliasMap v ++ ">"
232 -- user defined 232 -- user defined
233 Data t -> case normalize aliasMap (Data t) of 233 Data t -> case normalize aliasMap (Data t) of
234 Data n -> "std::shared_ptr<::" ++ n ++ ">" 234 Data n | t == n -> "std::shared_ptr<::" ++ t ++ ">"
235 _ -> "::" ++ t 235 _ -> "::" ++ t
236 x -> error $ "unknown type: " ++ show x 236 x -> error $ "unknown type: " ++ show x
237 237