Skip to content

Commit fa96750

Browse files
committed
Update frozen string literals
1 parent eee6ce9 commit fa96750

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

lib/rbpdf.rb

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2648,7 +2648,7 @@ def AddFont(family, style='', fontfile='', subset=nil)
26482648
family = 'helvetica';
26492649
end
26502650
if (family == "symbol") or (family == "zapfdingbats")
2651-
style = +''
2651+
style = ''
26522652
end
26532653

26542654
tempstyle = style.upcase
@@ -12046,7 +12046,7 @@ def putshaders()
1204612046
out = +'<<'
1204712047
out << ' /FunctionType 3'
1204812048
out << ' /Domain [0 1]'
12049-
functions = ''
12049+
functions = +''
1205012050
i = 1
1205112051
num_cols = grad['colors'].size
1205212052
1.upto(num_cols - 1) do |i|
@@ -12522,7 +12522,6 @@ def isValidCSSSelectorForTag(dom, key, selector)
1252212522
if dom[key]['attribute'] and dom[key]['attribute']['class'] and !dom[key]['attribute']['class'].empty?
1252312523
selector_class = dom[key]['attribute']['class'].downcase
1252412524
end
12525-
id = ''
1252612525
if dom[key]['attribute'] and dom[key]['attribute']['id'] and !dom[key]['attribute']['id'].empty?
1252712526
selector_id = dom[key]['attribute']['id'].downcase
1252812527
end
@@ -12709,7 +12708,7 @@ def getHtmlDomArray(html)
1270912708
uri.split('/').each {|path|
1271012709
uri_path = uri_path.join(path)
1271112710
}
12712-
cssdata = ''
12711+
cssdata = +''
1271312712
next unless File.exist?(uri_path)
1271412713

1271512714
open(uri_path) do |f|
@@ -13080,7 +13079,7 @@ def getHtmlDomArray(html)
1308013079
end
1308113080
end
1308213081
# font style
13083-
dom[key]['fontstyle'] ||= ""
13082+
dom[key]['fontstyle'] ||= +""
1308413083
if !dom[key]['style']['font-weight'].nil? and (dom[key]['style']['font-weight'][0,1].downcase == 'b')
1308513084
dom[key]['fontstyle'] << 'B'
1308613085
end

0 commit comments

Comments
 (0)