Commit a54a36f5 authored by Utkarsh Ayachit's avatar Utkarsh Ayachit

fix invalid casting issues.

parent 3cd13abd
......@@ -62,9 +62,9 @@ class SceneImageWriter : public vtkSMAnimationSceneWriter
public:
vtkTemplateTypeMacro(SceneImageWriter, vtkSMAnimationSceneWriter);
/**
* Set the vtkSMSaveScreenshotProxy proxy.
* Set the vtkSMSaveAnimationProxy proxy.
*/
void SetHelper(vtkSMSaveScreenshotProxy* helper) { this->Helper = helper; }
void SetHelper(vtkSMSaveAnimationProxy* helper) { this->Helper = helper; }
/**
* Set the writer to use.
......
......@@ -80,7 +80,7 @@ public:
struct LinkedSelection
{
public:
LinkedSelection(vtkSMProxy* proxy, int updateDir)
LinkedSelection(vtkSMSourceProxy* proxy, int updateDir)
: Proxy(proxy)
, UpdateDirection(updateDir)
{
......
......@@ -350,7 +350,7 @@ void vtkSMViewLayoutProxy::LoadState(const vtkSMMessage* message, vtkSMProxyLoca
if (locator && vtkSMProxyProperty::CanCreateProxy())
{
cell.ViewProxy = locator->LocateProxy(value.proxy_global_id(0));
cell.ViewProxy = vtkSMViewProxy::SafeDownCast(locator->LocateProxy(value.proxy_global_id(0)));
}
else
{
......@@ -492,7 +492,7 @@ int vtkSMViewLayoutProxy::LoadXMLState(vtkPVXMLElement* element, vtkSMProxyLocat
cell.SplitFraction = fraction;
if (viewid)
{
cell.ViewProxy = locator->LocateProxy(viewid);
cell.ViewProxy = vtkSMViewProxy::SafeDownCast(locator->LocateProxy(viewid));
}
else
{
......
......@@ -34,6 +34,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "pqCoreModule.h"
#include "pqServerResource.h"
#include "vtkPVXMLElement.h" // needed for ivar
#include "vtkSmartPointer.h"
#include <QObject>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment