Remove LocaleGuard from Plugin::get_state
authorTim Mayberry <mojofunk@gmail.com>
Wed, 21 Jun 2017 11:27:45 +0000 (21:27 +1000)
committerTim Mayberry <mojofunk@gmail.com>
Thu, 22 Jun 2017 00:48:38 +0000 (10:48 +1000)
commita5836e2922c1330f00956415465d2f186596c409
treeed5ba0a95f3fa18a9e5545bee6539892d599425a
parent8b10ed2478925ee71b2383ff8a38b9503e2642eb
Remove LocaleGuard from Plugin::get_state

Let the plugin implementation of Plugin::add_state use a LocaleGuard if it is
necessary (VST/LV2). This puts the LocaleGuards where they are required but the
LocaleGuards in Session::set/get_state will mean these LocaleGuards are a noop.
They are still useful for documentation purposes and in case the code is called
from a non-Session context at some point.
libs/ardour/plugin.cc