@@ -109,13 +109,14 @@ literals = mkPattern' match
109109 match (CppMapLiteral _ ps) = mconcat <$> sequence
110110 [ return $ runType (mapType $ length ps + 1) <> "{{\n"
111111 , withIndent $ do
112+ let ps' = ps ++ [(CppVar "nullptr", CppVar "nullptr")]
112113 cpps <-
113− forM ps $ \(key, value) -> do
114+ forM ps' $ \(key, value) -> do
114115 value' <- prettyPrintCpp' value
115116 key' <- prettyPrintCpp' key
116117 return $ "{ " <> key' <> ", " <> value' <> " }"
117118 indentString <- currentIndent
118− return $ T.intercalate ", \n" $ map (indentString <>) (cpps ++ ["{ nullptr, nullptr }"])
119+ return $ T.intercalate ", \n" $ map (indentString <>) cpps
119120 , return "\n"
120121 , currentIndent
121122 , return "}}"