mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-14 15:05:35 +02:00
Linux fixes
This commit is contained in:
@@ -53,32 +53,32 @@ TableCellHandlerFactory::TableCellHandlerFactory()
|
||||
{
|
||||
{
|
||||
TableCellHandler<CheckButtonCell>::Ptr pHandle(new TableCellHandler<CheckButtonCell>("Ext.form.Checkbox", true, true));
|
||||
pHandle->addDynamic("checked", &CheckButtonCell::getBool);
|
||||
pHandle->addDynamic<bool>("checked", &CheckButtonCell::getBool);
|
||||
registerFactory(typeid(CheckButtonCell), pHandle);
|
||||
}
|
||||
{
|
||||
TableCellHandler<TextEditCell>::Ptr pHandle(new TableCellHandler<TextEditCell>("Ext.form.TextArea", true, true));
|
||||
pHandle->addDynamic("value", &TextEditCell::getString);
|
||||
pHandle->addDynamic<std::string>("value", &TextEditCell::getString);
|
||||
registerFactory(typeid(TextEditCell), pHandle);
|
||||
}
|
||||
{
|
||||
TableCellHandler<TextFieldCell>::Ptr pHandle(new TableCellHandler<TextFieldCell>("Ext.form.TextField", true, false));
|
||||
pHandle->addDynamic("value", &TextFieldCell::getString);
|
||||
pHandle->addDynamic<std::string>("value", &TextFieldCell::getString);
|
||||
registerFactory(typeid(TextFieldCell), pHandle);
|
||||
}
|
||||
{
|
||||
TableCellHandler<NumberFieldCell>::Ptr pHandle(new TableCellHandler<NumberFieldCell>("Ext.form.NumberField", true, false));
|
||||
pHandle->addDynamic("value", &NumberFieldCell::getString);
|
||||
pHandle->addDynamic<std::string>("value", &NumberFieldCell::getString);
|
||||
registerFactory(typeid(NumberFieldCell), pHandle);
|
||||
}
|
||||
{
|
||||
TableCellHandler<ComboBoxCell>::Ptr pHandle(new TableCellHandler<ComboBoxCell>("Ext.form.ComboBox", true, false));
|
||||
pHandle->addDynamic("value", &ComboBoxCell::getString);
|
||||
pHandle->addDynamic<std::string>("value", &ComboBoxCell::getString);
|
||||
registerFactory(typeid(ComboBoxCell), pHandle);
|
||||
}
|
||||
{
|
||||
TableCellHandler<ButtonCell>::Ptr pHandle(new TableCellHandler<ButtonCell>("Ext.Button", false, true));
|
||||
pHandle->addDynamic("text", &ButtonCell::getString);
|
||||
pHandle->addDynamic<std::string>("text", &ButtonCell::getString);
|
||||
registerFactory(typeid(ButtonCell), pHandle);
|
||||
}
|
||||
{
|
||||
|
@@ -312,7 +312,7 @@ void Utility::convertPocoDateToPHPDate(char in, std::string& result)
|
||||
'`', 'a', 'M', 'u', 'd', 'j', 'f', 'g', 'h', 'u', 'j', 'k', 'l', 'm', 'n', 'm',
|
||||
'p', 'q', 'r', 's', 't', 'u', 'v', 'D', 'x', 'y', 'P', '{', '|', '}', '~', '\x7F'};
|
||||
|
||||
|
||||
//sometimes char is signed: keep this warning
|
||||
if (in < 0 || in > 127)
|
||||
{
|
||||
result.append(1, in);
|
||||
@@ -336,6 +336,7 @@ void Utility::escapeCharForPHP(char in, std::string& result)
|
||||
'0', '1', '0', '1', '1', '0', '0', '1', '1', '1', '1', '0', '1', '1', '1', '1',
|
||||
'0', '0', '0', '1', '1', '1', '0', '1', '0', '1', '1', '0', '0', '0', '0', '0'};
|
||||
|
||||
//sometimes char is signed: keep this warning
|
||||
if (in < 0 || in > 127)
|
||||
{
|
||||
result.append(1, in);
|
||||
@@ -362,6 +363,7 @@ void Utility::convertPHPDateToPocoDate(char in, std::string& result)
|
||||
'`', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o',
|
||||
'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '{', '|', '}', '~', '\x7F'};
|
||||
|
||||
//sometimes char is signed: keep this warning
|
||||
if (in < 0 || in > 127)
|
||||
{
|
||||
result.append(1, in);
|
||||
|
Reference in New Issue
Block a user