summaryrefslogtreecommitdiffstats
path: root/src/Patchage.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-11-27 17:57:44 +0100
committerDavid Robillard <d@drobilla.net>2020-11-27 21:42:51 +0100
commitf80e8274555f0da157e0b8c1fcae975d66178ab7 (patch)
treed240f930d062b69bb5b8fd4ca4f253d2280ba968 /src/Patchage.cpp
parent5f5e293345a063ab7b274edcc76d329891503379 (diff)
downloadpatchage-f80e8274555f0da157e0b8c1fcae975d66178ab7.tar.gz
patchage-f80e8274555f0da157e0b8c1fcae975d66178ab7.tar.bz2
patchage-f80e8274555f0da157e0b8c1fcae975d66178ab7.zip
Use "using"
Diffstat (limited to 'src/Patchage.cpp')
-rw-r--r--src/Patchage.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Patchage.cpp b/src/Patchage.cpp
index 022eace..997365d 100644
--- a/src/Patchage.cpp
+++ b/src/Patchage.cpp
@@ -1000,8 +1000,9 @@ Patchage::on_export_image()
dialog.set_default_response(Gtk::RESPONSE_OK);
dialog.set_transient_for(*_main_win);
- typedef std::map<std::string, std::string> Types;
- Types types;
+ using Types = std::map<std::string, std::string>;
+
+ Types types;
types["*.dot"] = "Graphviz DOT";
types["*.pdf"] = "Portable Document Format";
types["*.ps"] = "PostScript";