if (overhead == 0)
state = v.validate(str, pos);
else {
- if (str.length() >= overhead && str.startsWith(pref) && str.right(suff.length()) == suff) {
+ if ((uint)(str.length()) >= overhead && str.startsWith(pref) && str.right(suff.length()) == suff) {
QString core = str.mid(pref.length(), str.length() - overhead);
int corePos = pos - pref.length();
state = v.validate(core, corePos);
{
bool aResult = (myResult.get() == thePrs.object().get());
bool aOwner = (myOwner.Access() == thePrs.owner().Access());
- bool aShape = myShape.IsEqual(thePrs.shape());
- bool aIO = (myInteractive == thePrs.interactive());
+ bool aShape = myShape.IsEqual(thePrs.shape()) == Standard_True;
+ bool aIO = (myInteractive == thePrs.interactive()) == Standard_True;
return aResult && aOwner && aShape && aIO;
}
* \ingroup GUI
* \brief Custom widget value. The widget contains a feature and 2D point.
*/
-class MODULEBASE_EXPORT ModuleBase_WidgetValueFeature : public ModuleBase_WidgetValue
+class ModuleBase_WidgetValueFeature : public ModuleBase_WidgetValue
{
public:
/// Constructor
- ModuleBase_WidgetValueFeature();
+ MODULEBASE_EXPORT ModuleBase_WidgetValueFeature();
/// Destructor
- virtual ~ModuleBase_WidgetValueFeature();
+ MODULEBASE_EXPORT virtual ~ModuleBase_WidgetValueFeature();
/// Fill the widget values by given point
/// \param thePoint the point
- void setObject(const ObjectPtr& theFeature);
+ MODULEBASE_EXPORT void setObject(const ObjectPtr& theFeature);
/// Returns the widget values by given point
/// \return theFeature the current feature
- const ObjectPtr& object() const;
+ MODULEBASE_EXPORT const ObjectPtr& object() const;
/// Fill the widget values by given point
/// \param thePoint the point
- void setPoint(const boost::shared_ptr<GeomAPI_Pnt2d>& thePoint);
+ MODULEBASE_EXPORT void setPoint(const boost::shared_ptr<GeomAPI_Pnt2d>& thePoint);
/// Returns the widget point
/// \return the current point
- const boost::shared_ptr<GeomAPI_Pnt2d>& point() const;
+ MODULEBASE_EXPORT const boost::shared_ptr<GeomAPI_Pnt2d>& point() const;
private:
ObjectPtr myResult;