Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit 5662bce9 authored by Harald Martini's avatar Harald Martini
Browse files

replaced c style cast with safe cast in XMLDeclarationReportTrailer

parent 6188e0d0
Branches
Tags
No related merge requests found
......@@ -85,13 +85,16 @@ namespace TUGraz.VectoCore.OutputData.XML {
OutputReports();
}
var writer = (FileOutputWriter)Writer;
var writer = Writer as FileOutputWriter;
WriteStyleSheet(writer?.BasePath);
}
private static void WriteStyleSheet(string basePath)
{
//write stylesheet file
if (basePath == null) {
return;
}
var assembly = Assembly.GetExecutingAssembly();
const string resourceName = DeclarationData.DeclarationDataResourcePrefix + ".Trailer.VectoReportsTrailer.css";
var styleSheet = string.Empty;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment