Skip to content

Commit

Permalink
Replace Nullable{T} with Union{T, Nothing}
Browse files Browse the repository at this point in the history
  • Loading branch information
mkborregaard committed May 4, 2018
1 parent 5b0ba79 commit 1b5c258
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components.jl
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ mutable struct SeriesAnnotations
end
function series_annotations(strs::AbstractVector, args...)
fnt = font()
shp = Nullable{Any}()
shp = Union{Any, Nothing}()
scalefactor = (1,1)
for arg in args
if isa(arg, Shape) || (isa(arg, AbstractVector) && eltype(arg) == Shape)
Expand Down
4 changes: 2 additions & 2 deletions src/plot.jl
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

mutable struct CurrentPlot
nullableplot::Nullable{AbstractPlot}
nullableplot::Union{AbstractPlot, Nothing}
end
const CURRENT_PLOT = CurrentPlot(Nullable{AbstractPlot}())
const CURRENT_PLOT = CurrentPlot(Union{AbstractPlot, Nothing}())

isplotnull() = isnull(CURRENT_PLOT.nullableplot)

Expand Down

0 comments on commit 1b5c258

Please sign in to comment.