示例#1
0
 static std::string getSimpleNodeLabel(SILBasicBlock *Node, SILFunction *F) {
   std::string OutStr;
   raw_string_ostream OSS(OutStr);
   const_cast<SILBasicBlock *>(Node)->printAsOperand(OSS, false);
   return OSS.str();
 }
示例#2
0
void messageBox(const char * caption, const char * text, MessageBoxType type)
{
	MessageBoxA(NULL, OSS(e.what() << "\nthrown from " << e.where()), "Exception", getTypeFlag(type) | MB_TASKMODAL | MB_TOPMOST);
}
	virtual void write(QWidget * editor, QAbstractItemModel *model, const QModelIndex &index) const
	{
		QDoubleSpinBox * doubleSpinBox = (QDoubleSpinBox*)editor;
		double value = doubleSpinBox->value();
		model->setData(index, OSS(value), Qt::EditRole);
	}