aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/tab.rb
diff options
context:
space:
mode:
authorJack Nagel2014-08-02 19:29:59 -0500
committerJack Nagel2014-08-02 19:29:59 -0500
commite1f97e260ca320141c9c48158814aff895e76486 (patch)
tree16d8d51ada8114f47c84ddfe1dc8221795f1e02f /Library/Homebrew/tab.rb
parent08d3790347330aaced0c586f18603dff60ae70dc (diff)
downloadhomebrew-e1f97e260ca320141c9c48158814aff895e76486.tar.bz2
Use polymorphism to simplify stdlib compatibility check
Diffstat (limited to 'Library/Homebrew/tab.rb')
-rw-r--r--Library/Homebrew/tab.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/tab.rb b/Library/Homebrew/tab.rb
index 0b1605ab1..436af0062 100644
--- a/Library/Homebrew/tab.rb
+++ b/Library/Homebrew/tab.rb
@@ -119,7 +119,7 @@ class Tab < OpenStruct
# Older tabs won't have these values, so provide sensible defaults
lib = stdlib.to_sym if stdlib
cc = compiler || MacOS.default_compiler
- CxxStdlib.new(lib, cc.to_sym)
+ CxxStdlib.create(lib, cc.to_sym)
end
def to_json