Problems when compiling

I have created a plugin on Mac and now I want to create a Windows version of it. When I open it with VisualStudio and try to Debug it I get a couple of errors. The code with the errors is:

void TbPluginAudioProcessor::getStateInformation (MemoryBlock& destData)

{
ScopedPointer xml (parameters.state.createXml());
copyXmlToBinary(*xml, destData);
}

void TbPluginAudioProcessor::setStateInformation (const void* data, int sizeInBytes)
{
// You should use this method to restore your parameters from this memory block,
// whose contents will have been created by the getStateInformation() call.

ScopedPointer<XmlElement> theParams (getXmlFromBinary(data, sizeInBytes));

if (theParams != nullptr)
{
    if (theParams -> hasTagName(parameters.state.getType()))
    {
        parameters.state = ValueTree::fromXml(*theParams);
    }
}

I include a picture of the errors as well as the code.

I am very thankful for any help!

Different versions of Juce on your Mac and Windows machines? Newer Juce versions have deprecated the use of ScopedPointer.