1/* 2 * Copyright 2015, Rene Gollent, rene@gollent.com. 3 * Distributed under the terms of the MIT License. 4 */ 5 6#include "TableCellFormattedValueEditor.h" 7 8#include "ValueFormatter.h" 9 10 11TableCellFormattedValueEditor::TableCellFormattedValueEditor( 12 Value* initialValue, ValueFormatter* formatter) 13 : 14 TableCellValueEditor(), 15 fValueFormatter(formatter) 16{ 17 SetInitialValue(initialValue); 18 fValueFormatter->AcquireReference(); 19} 20 21 22TableCellFormattedValueEditor::~TableCellFormattedValueEditor() 23{ 24 fValueFormatter->ReleaseReference(); 25} 26