using lyx::support::split;
using std::endl;
-
+using std::string;
using std::pair;
{}
+// For the sake of boost::scoped_ptr.
TransManager::~TransManager()
-{
- delete t1_;
- delete t2_;
-}
+{}
int TransManager::SetPrimary(string const & language)
void TransManager::EnablePrimary()
{
if (t1_->IsDefined())
- active_ = t1_;
+ active_ = t1_.get();
lyxerr[Debug::KBMAP] << "Enabling primary keymap" << endl;
}
void TransManager::EnableSecondary()
{
if (t2_->IsDefined())
- active_ = t2_;
+ active_ = t2_.get();
lyxerr[Debug::KBMAP] << "Enabling secondary keymap" << endl;
}